Update a Webhook
Update the fields of a Webhook
object
Parameter
Accessible via URL https://api.channel.io/open/v4/webhooks/{id}
and HTTP PATCH
This method accepts
application/json
Parameter | Example | Required | Description | Parameter type |
---|---|---|---|---|
id | 12345 | Required | ID of Webhook object | Path |
(property) | (name) | Optional | Property of Webhook | Body |
Example
PATCH https://api.channel.io/open/v4/webhooks/12345
Your PATCH body should look like
{
"name" : "changed"
}
Response
Returns the changed Webhook
object.
{
"webhook": {
"id": "string",
"channelId": "string",
"name": "string",
"url": "string",
"token": "string",
"keywords": [
"string"
],
"createdAt": 1624414654616,
"watchUserChats": true,
"watchGroups": true,
"apiVersion": "string",
"lastBlockedAt": 1624414654616,
"blocked": true
}
}
Updated about 1 year ago