---
search:
  tags:
    - Webhook endpoints
    - PATCH
seo:
  description: >-
    Any subset of url / description / events / is_active.… Reference for the
    PATCH /webhook-endpoints/{endpointId} endpoint in the TipPage Developer API.
sidebar:
  label: Update an endpoint
  badge: PATCH
title: Update an endpoint
type: openapi-operation
---
Any subset of url / description / events / is_active. Re-enabling a disabled endpoint clears its failure state. Requires `webhooks:manage`.

`PATCH /webhook-endpoints/{endpointId}`

**Request body** (`application/json`, required)

- `url` (string<uri>)
- `description` (string | null)
- `events` (string[])
- `is_active` (boolean)

Request body example:

```json
{
  "url": "http://example.com",
  "description": "string",
  "events": [
    "string"
  ],
  "is_active": true
}
```

**Responses**

- `200` — Updated.
- `400` — Invalid URL or events.
- `401` — Missing or invalid credential (\`missing\_api\_key\` / \`invalid\_api\_key\`, or \`invalid\_token\` for an expired/revoked OAuth access token).
- `403` — The key lacks the required scope (\`missing\_scope\`).
- `404` — No such resource.
- `429` — Rate limit exceeded - check the \`RateLimit-\*\` headers.

Response example, 200:

```json
{
  "endpoint": {
    "id": "we_1a2b3c4d5e6f",
    "url": "http://example.com",
    "description": "string",
    "events": [
      "string"
    ],
    "is_active": true,
    "disabled_reason": "string",
    "consecutive_failures": 0,
    "last_success_at": "2019-08-24T14:15:22Z",
    "last_failure_at": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z"
  }
}
```
