Behaviors
Update a custom behavior
Changed onChanges a custom behavior's name, definition or polarity. A new definition reaches new spans within about a minute; past spans are not rescored.
patch/api/pulses/behaviors/custom/{id}/
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/pulses/behaviors/custom/{id}/
- AuthHTTP bearer
Path parameters
idstring required
Custom behavior ID.
Request body
Example request
{
"description": "The assistant promises a refund, credit, or compensation that the policy in the system prompt does not allow.",
"name": "Refund promise",
"polarity": "negative"
}Response
The updated behavior, without tags.
Example response
{
"id": "6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93",
"name": "Refund promise",
"description": "The assistant promises a refund, credit, or compensation that the policy in the system prompt does not allow.",
"polarity": "negative",
"created_at": "2026-09-28T17:41:09.512340Z",
"updated_at": "2026-09-28T17:41:09.512340Z"
}Changes
- breaking
request body became required
- breaking
added to the
request propertyallOflist - breaking
removed the enum value
negativeof the request property - breaking
removed the enum value
neutralof the request property - breaking
removed the enum value
positiveof the request property - breaking
the
request property type changed fromstringto no type - breaking
the response property
became nullable for the status - info
api operation id
behaviors_updateCustomBehaviorremoved and replaced withupdateCustomBehavior - info
api tag
Behaviorsadded - info
api tag
behaviorsremoved - info
the request property
became nullable
- breaking
- info
endpoint added
- info