Skip to content

Update webhook configuration

Creates or updates the webhook configuration of a client.

Endpoint: PUT /v1/webhook/config

Body

FieldTypeRequiredDescription
urlstringYesNotification URL (https).
client_idnumberNoClient to configure. Default: the token’s client. Requires BSP_CN if it differs from the token.
activebooleanNoEnables/disables notification.

Request

curl --request PUT \
  --url 'https://api.chattigo.com/v1/webhook/config' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": 6,
    "url": "https://hooks.chattigo.com/evt"
  }'

Response

Success (200)

{
  "client_id": 1001,
  "url": "https://hooks.chattigo.com/evt",
  "active": true
}

Errors

CodeCase
400url required, or invalid client_id
403Cross-client without BSP_CN