Add an Event to Webhook
Description:
You can use this API to add an event to webhook.
Requested Payload:
- ids - To specify the list of events that should to be added (ex:conversation.created.)
OAuth Scope:
SalesIQ.webhooks.UPDATE
URL:
Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screenname}/webhooks/{id}/events
Example:
Copiedhttps://salesiq.zoho.com/api/v2/zylker/webhooks/8000000002001/events
Payload:
Copied{
"ids": [
"conversation.created",
"conversation.missed",
"conversation.visitor.replied",
"conversation.operator.replied",
"conversation.rated"
]
}
Sample Response:
Copied{
"url": "/api/v2/zylker/webhooks/19367000000120011",
"object": "webhook",
"data": {
"modified_time": "1566841793192",
"url": "https://zylker.com/webhooks.ext",
"expiry_time_for_executions_data": "180000000",
"id": "19367000000120011",
"modifier": {
"id": "19367000000002079"
},
"creator": {
"id": "19367000000002079"
},
"status": "enabled",
"failures_count": "0",
"secured": true,
"app_ids": [
"19367000000002043"
],
"version": 1,
"type": "data",
"public_keys": [
{
"key": "",
"creator": {
"id": "19367000000002079"
},
"created_time": "1566676375915",
"id": "1566676375915"
}
],
"created_time": "1566676375741",
"ids": [
"conversation.created",
"conversation.missed",
"conversation.visitor.replied",
"conversation.operator.replied",
"conversation.rated"
]
},
"sync_time": "1566888552910"
}