name, url, events, filters, is_active).{
"events": [
"ticket.created",
"ticket.closed",
"ticket.phase_changed"
]
}curl --location --globoff --request PUT 'https://api-{tenant}.digitalk.com.br/api/v2/webhooks/subscriptions/' \
--header 'api-key: API_TOKEN (disponível no database da plataforma)' \
--header 'Content-Type: application/json' \
--data '{
"events": [
"ticket.created",
"ticket.closed",
"ticket.phase_changed"
]
}'{ok, data}).{
"ok": true,
"code": 0,
"data": {
"id": "string",
"name": "string",
"description": "string",
"url": "string",
"events": [
"string"
],
"filters": {},
"is_active": true,
"secret_preview": "string",
"secret": "string",
"created_by": 0,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}
}