Events
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
- Base URLhttps://api.kapso.ai/platform/v1
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.