The information about the collection item that was changed
Trigger Type
collection_item_changed
Properties
Each webhook payload will have a triggerType
property to identify which event prompted the request, and a payload
property to deliver the requested information.
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the Item |
siteId | string | Unique identifier for the Site where the Collection lives |
workspaceId | string | Unique identifier for the Workspace where the Site lives |
collectionId | string | Unique identifier for the Collection |
lastPublished | string | Date and time of when the item was last published, will be null if the item has never been published. |
lastUpdated | string | Date and time of when the item was last updated |
createdOn | string | Date and time of when the item was created |
isArchived | boolean | Boolean determining if the Item is set to archived |
isDraft | boolean | Boolean determining if the Item is set to draft |
fieldData | object | Object containing the item details structured within the Collection's schema. |
Example
{
"triggerType": "collection_item_changed",
"payload":{
"id": "582b900cba19143b2bb8a759",
"siteId": "1111111",
"workspaceId": "1111111",
"collectionId": "1111111",
"lastPublished": null,
"lastUpdated": "2023-03-27T22:26:40.926Z",
"createdOn": "2023-03-27T22:26:40.926Z",
"archived": false,
"draft": true,
"fieldData":{
// Any data included in the Collection's Item's schema
"name": "hello world",
"slug": "hello-world",
"favoriteColor": "#ff00ff",
}
}
}