PATCH
/
webhook
/
status
curl --request PATCH \
  --url https://scribe-api.puppilot.co/webhook/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event_type": "scribe",
  "is_active": false,
  "organization_public_id": "<string>"
}'
{
  "message": "Webhook's is_active status updated successfully",
  "data": {
    "public_id": "<string>",
    "event_type": "scribe",
    "is_active": false,
    "organization_public_id": "<string>"
  }
}

Overview

The PATCH /webhook/status endpoint allows you to activate or deactivate a registered webhook for a specific event type.

Key Steps:

  1. Send a PATCH request to /webhook/status with the event_type, is_active status, and organization_public_id.
  2. If successful, the webhook will be updated, and notifications will either be enabled or disabled accordingly.

Example Request

To disable a webhook for the "scribe" event type, send the following request:

{
  "event_type": "scribe",
  "is_active": false,
  "organization_public_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Payload to update the webhook status.

The body is of type object.

Response

200 - application/json

Webhook's is_active status updated successfully.

The response is of type object.