v1
latestOpenAPI 3.1.02026-07-22115189303.8 KBEvents
Create or update a project event definition
Creates a definition for an event type. If a definition with the same name already exists, Kapso updates its editable metadata and returns it. If the existing definition is archived, this request restores it. Use /events when you want to emit an actual event occurrence.
post/event-definitions
Request body
Example request
{
"name": "conversation.csat_scored",
"property_schema": {
"score": {
"type": "number"
},
"reason": {
"type": "string"
}
}
}Response
Existing definition updated
Example response
{
"data": {
"name": "conversation.csat_scored",
"property_schema": {
"score": {
"type": "number"
},
"reason": {
"type": "string"
}
}
}
}