Events
Action |
Event name |
create a label |
label.created |
update a label |
label.updated |
delete a label |
label.deleted |
Payload example created
{
"attemptId": "0ab70210-547a-4a7a-8e1b-e402a8663308",
"created": 1623794899,
"data": {
"_id": "60c924b8d9e6c43f77b5a5a3",
"accountId": "52a377ec430c7d4e220001fc",
"color": "#4ae852",
"createdAt": {
"offset": 0,
"value": "2021-06-15T22:07:52.532Z"
},
"deleted": false,
"description": "normal ticket",
"disabled": false,
"modelName": "tickets",
"name": "Non vip",
"updatedAt": {
"offset": 0,
"value": "2021-06-15T22:07:52.539Z"
},
"userId": "55fc2f318791db6e1a0000b6"
},
"event": "label.created",
"id": "efec49e0-80a0-4734-bf02-2581cddd13af",
"livemode": true
}
Payload example updated
{
"attemptId": "f6489e7c-ae53-4d9f-a61d-cd6e12ae640b",
"created": 1623794899,
"data": {
"_id": "60c924b8d9e6c43f77b5a5a3",
"accountId": "52a377ec430c7d4e220001fc",
"color": "#4ae8cd",
"createdAt": {
"offset": 0,
"value": "2021-06-15T22:07:52.532Z"
},
"deleted": false,
"description": "Ticket",
"disabled": false,
"modelName": "tickets",
"name": "Non vip",
"updatedAt": {
"offset": 0,
"value": "2021-06-15T22:08:06.715Z"
},
"userId": "55fc2f318791db6e1a0000b6"
},
"event": "label.updated",
"id": "75372595-b02e-4462-96ef-7425d9a68694",
"livemode": true
}
Payload example deleted
{
"attemptId": "d58defed-a305-43f5-8ce8-0db76fae8f2b",
"created": 1623954546,
"data": {
"id": "60cb946a59d5f340cdf7641a"
},
"event": "label.deleted",
"id": "2848c400-2795-4ebf-a6f8-f935a97701f0",
"livemode": true
}