PUT
/
webhooks
/
subscriptions
/
{subscriptionId}
/
events
Update Subscription Events
curl --request PUT \
  --url https://api.chat-dash.com/v1/partner/webhooks/subscriptions/{subscriptionId}/events \
  --header 'Content-Type: application/json' \
  --header 'x-partner-api-key: <x-partner-api-key>' \
  --data '{
  "add": [
    "call.started"
  ],
  "remove": [
    "call.started"
  ]
}'
{
  "_id": "<string>",
  "organizationId": "<string>",
  "agentId": "<string>",
  "webhookUrl": "<string>",
  "events": [
    "call.started"
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Headers

x-partner-api-key
string
required

Partner API key for authentication

Path Parameters

subscriptionId
string
required

Webhook subscription ID

Body

application/json

Response

200 - application/json

Events updated successfully

The response is of type object.