DELETE
/
apps
/
{appId}
/
webhooks
/
{webhookId}
/
triggers
Remove Triggers
curl --request DELETE \
  --url https://apimgmt.cometchat.io/apps/{appId}/webhooks/{webhookId}/triggers \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "name": "Sachin Bahukhandi",
  "email": "sachin.bahukhandi+114@cometchat.com",
  "password": "sachin@123",
  "contactNumber": "8936985734",
  "role": "engineer",
  "appName": "Create APP",
  "appRegion": "us"
}'
{
  "data": {
    "success": true,
    "message": "Removed trigger successfully."
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

X-Webhook-Version
integer

The "X-Webhook-Version" header is an optional integer property.When this header is omitted from the request, the system defaults to the legacy webhook, ensuring backward compatibility and seamless operation.Conversely, setting the value of this header to "2" indicates the preference for the new webhook implementation.

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

webhookId
string
required

Id of the webhook

Body

application/json

Response

200 - application/json

Enabled Triggers

The response is of type object.