Create Procedure

Create a new procedure for the agent on a branch.

Parâmetros de caminho

agent_idstringObrigatório
Agent ID to get the procedure draft from
branch_idstringObrigatório
Branch ID to get the procedure draft from

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an optional object.
namestringOpcional<=200 charactersPadrão é
Procedure name
contentstringOpcionalPadrão é
Initial procedure content
typeenumOpcionalPadrão é free_form
Procedure type
Valores permitidos:
triggerstringOpcional

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_idstringOpcional
Procedure ID of the folder to create this procedure in, or null for root.

Resposta

Successful Response
procedure_idstring
ID of the created procedure

Erros

422
Procedures Create Request Unprocessable Entity Error