Skip to navigation

Update Procedure

Replace an existing procedure on the named receptionist. Send every field: an omitted body resets to empty.

Path parameters

agent_idstringRequired

ID of the receptionist. List them with GET /v1/reception/customer-facing-agents.

procedure_idstringRequired

ID of the procedure. Returned when you add one; list them with GET /v1/reception/customer-facing-agents/{agent_id}/procedures.

Headers

xi-api-keystringOptional
xi-workspace-idstringRequired
The customer workspace a reseller's API key acts on.

Request

This endpoint expects an object.
namestringRequired
Name of the procedure.
triggerstringRequired
When the receptionist should run the procedure, in natural language. The receptionist matches caller requests against it, e.g. 'When the caller wants to book an appointment'.
bodystringOptional<=40000 charactersDefaults to

Step-by-step instructions, as markdown.

Response

Successful Response
namestring
Name of the procedure.
triggerstring
When the receptionist should run the procedure, in natural language. The receptionist matches caller requests against it, e.g. 'When the caller wants to book an appointment'.
bodystringOptional<=40000 charactersDefaults to

Step-by-step instructions, as markdown.

idstringOptional
ID of the procedure.
created_at_unixintegerOptional
When the procedure was created, as a Unix timestamp in seconds.
source_keystring or nullOptional

Set when the procedure was copied from an integration’s template; null for procedures you create.

Errors

422
Unprocessable Entity Error