Skip to content
Sign in Create account

Update a webhook endpoint

PATCH /api/v1/webhooks/endpoints/{id}

Updates the URL, subscribed events, or active state of an endpoint owned by the authenticated organization. Requires webhooks.manage and the write ability. Changed URLs pass the outbound URL safety check; validation or an unsafe destination returns 422, and an endpoint outside the organization returns 404.

Authenticate with a portal session token.

Parameters

  • id integer path required

Request body (optional)

application/json object

  • events array of string
  • is_active boolean
  • url string (uri)
    Length: at most 512 characters

Example

{
  "is_active": false
}

Responses

200 Endpoint settings updated.

application/json object

  • events array of string required
  • id integer required
  • is_active boolean required
  • url string (uri) required

Generated sample

{
  "events": [
    "string"
  ],
  "id": 0,
  "is_active": true,
  "url": "https://example.com"
}
401 Missing or invalid bearer token.

application/json object

Any keys are accepted.

403 The authenticated user has not verified their email or accepted the Terms of Service and Privacy Policy, or lacks the required write ability or webhooks.manage permission.

application/json object

Any keys are accepted.

404 Endpoint was not found in this organization.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 Validation failed or the destination URL is unsafe.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string