Passer à la navigation

Update Procedure

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

Paramètres de chemin

agent_idstringRequis
procedure_idstringRequis

En-têtes

xi-api-keystringOptionnel
xi-workspace-idstring or nullOptionnel
The customer workspace a reseller's API key acts on.

Requête

This endpoint expects an object.
namestringRequis
Name of the procedure.
triggerstringRequis
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'.
bodystringOptionnel<=40000 charactersPar défaut

Step-by-step instructions, as markdown.

Réponse

Réponse réussie

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'.
bodystringOptionnel<=40000 charactersPar défaut

Step-by-step instructions, as markdown.

idstringOptionnel
created_at_unixintegerOptionnel

Unix timestamp (seconds since epoch)

source_keystring or nullOptionnel

Erreurs

422
Unprocessable Entity Error