Подписки на события
Создать подписку
Создает подписку на события в компании
post/api-v2/webhooks
Request
- Base URLhttps://api-docs.yougile.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Request body
Example request
{
"url": "https://webhook.site/947c0ee4-fd8c-416c-9e1c-2b3cd5d78a8d",
"event": "task-created",
"filters": [
{
"name": "location",
"value": [
"858c5d32-dd93-4d2b-9b9c-aa1ec7007c0c",
"432c5d32-dd93-4d2b-9b9c-aa1ec7007c0c"
]
},
{
"name": "title",
"value": "^!"
},
{
"name": "chat_message",
"value": "^/bot "
}
]
}Response
Подписка создана
Example response
{
"id": "4f6f0391-0f94-4d30-9b0e-99430a36d4fb"
}Changes
No recorded changes to this operation across all 4 revisions of this API.