Skip to main content

Collection Webhooks

Creating, updating, and deleting a space collections result in collection.created, collection.updated, and collection.deleted webhook events.

The structure for all above events is as followed:

Event name: collection.created
{
"networkId": "CAxOmI7I7t",
"context": "NETWORK",
"entityId": "CAxOmI7I7t",
"currentSettings": [],
"type": "SUBSCRIPTION",
"data": {
"time": "2021-12-20T05:29:26.714Z",
"verb": "CREATED",
"verbAction": "ADDED",
"actor": {
"id": "olQ88vTqYp",
"roleId": "Kni0OF7HtE",
"roleType": "admin",
"sessionInfo": [
null
]
},
"object": {
"id": "gBIWyOzAe7tU",
"networkId": "CAxOmI7I7t",
"createdById": "olQ88vTqYp",
"createdAt": "2021-12-20T05:29:26.714Z",
"updatedAt": "2021-12-20T05:29:26.714Z",
"customOrderingIndex": 2,
"status": "created",
"supId": null,
"name": "Test collection",
"description": null,
"slug": "test-collection-z4zxljl5"
},
"target": {
"organizationId": "i7RkgwKXwz",
"networkId": "CAxOmI7I7t",
"groupId": "gBIWyOzAe7tU",
"collectionId": "gBIWyOzAe7tU"
},
"id": "33217b09922900085cfaa095efc4b50a",
"name": "collection.created",
"noun": "COLLECTION",
"shortDescription": "Create Space Collection"
}
}