Create Procedure

Create a new procedure for the agent on a branch.

Parametry ścieżki

agent_idstringWymagany
Agent ID to get the procedure draft from
branch_idstringWymagany
Branch ID to get the procedure draft from

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

This endpoint expects an optional object.
namestringOpcjonalny<=200 charactersDomyślnie
Procedure name
contentstringOpcjonalnyDomyślnie
Initial procedure content
typeenumOpcjonalnyDomyślnie free_form
Procedure type
Dozwolone wartości:
triggerstringOpcjonalny

When the agent should use this procedure. Empty string means this is a sub-procedure that should only start when another procedure references it. If omitted or null, the trigger is derived from the content instead. Also accepts description as an alias.

folder_parent_idstringOpcjonalny
Procedure ID of the folder to create this procedure in, or null for root.

Odpowiedź

Successful Response
procedure_idstring
ID of the created procedure

Błędy

422
Procedures Create Request Unprocessable Entity Error