Webhook Event Schema
Webhook events POSTed to your HTTP endpoint will follow this JSON schema:
{
"title": "Percolate Webhook Event",
"type": "object",
"properties": {
"change_type": {
"description": "Data operation, one of create, delete, update",
"type": "string",
"enum": [
"create",
"update",
"delete"
]
},
"object_id": {
"description": "Object identifier",
"type": "string"
},
"object_type": {
"description": "type of object",
"type": "string"
},
"object_value": {
"description": "value of changed object: after change for create, before for delete and update",
"type": "object"
},
"update": {
"description": "JSON patch to apply to object value to produce new value after update",
"$ref": "http://json.schemastore.org/json-patch"
},
"tenant_id": {
"description": "ID of Percolate tenant that owns the data",
"type": "string"
},
"actor_id": {
"description": "ID of Percolate user that effected the change",
"type": [
"string",
"null"
]
},
"event_time": {
"description": "event timestamp",
"type": "string",
"format": "date-time"
}
},
"required": [
"change_type",
"object_id",
"object_type",
"tenant_id",
"actor_id",
"event_time"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}
Updated almost 4 years ago