Webhook Events
Item updated
Aira sends this event after a field of an item changes: its name, its custom fields, its archive or its restore. An update that leaves the name and the custom fields of the item as they were sends no event.
WEBHOOK
item.updated
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "item.updated",
"payload": {
"item": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Monthly fee",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"archivedAt": "2023-11-07T05:31:56Z"
},
"previousValues": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Monthly fee",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"archivedAt": "2023-11-07T05:31:56Z"
}
}
}Headers
Body
application/json
The event, with its identifier, its name and its payload.
Response
2XX
Answer with a 2XX status to confirm the delivery. Aira retries a delivery that gets another status, a redirect or no answer.
⌘I
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "item.updated",
"payload": {
"item": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Monthly fee",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"archivedAt": "2023-11-07T05:31:56Z"
},
"previousValues": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Monthly fee",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"archivedAt": "2023-11-07T05:31:56Z"
}
}
}