Update Webhook
Update a webhook in the account.
Settings:
|
URL |
https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks/{webhook_id} |
|
Method |
JSON via PATCH |
Authorization:
|
Header Parameter |
Description |
|
api_access_token |
user API key |
The user API key provides access to endpoints based on the user permissions levels and can be obtained by visiting the profile page.
Path Parameters:
|
Parameter |
Description |
Required |
|
account_id |
The numeric id of the account |
yes |
|
webhook_id |
The numeric id of the webhook |
yes |
Request body:
|
Parameter |
type |
Description |
Required |
|
url |
string |
The URL where the events should be sent |
no |
|
subscriptions |
array of strings |
The events to which you want to be subscribed
|
no |
Request body example:
{
"subscriptions": ["conversation_created", "message_created"]
}
Response:
Response-Explain:
|
Parameter |
Description |
|
payload -> webhook |
Objects containing webhook details |
|
payload -> webhook -> id |
The numeric id of the webhook |
|
payload -> webhook -> url |
The URL to which the events will be send |
|
payload -> webhook -> account_id |
The numeric id of the account |
|
payload -> webhook -> subscriptions |
Array of strings (subscribed events) |
Created with the Personal Edition of HelpNDoc: Full-featured Documentation generator