Create Procedure
Create a new procedure for the agent on a branch.
Path parameters
agent_id
Agent ID to get the procedure draft from
branch_id
Branch ID to get the procedure draft from
Headers
xi-api-key
Request
This endpoint expects a nullable object.
name
Procedure name
content
Initial procedure content
type
Procedure type
trigger
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_id
Procedure ID of the folder to create this procedure in, or null for root.
Response
Successful Response
procedure_id
ID of the created procedure
Errors
422
Unprocessable Entity Error