Create Procedure

Create a new procedure for the agent on a branch.

路径参数

agent_idstring必需
Agent ID to get the procedure draft from
branch_idstring必需
Branch ID to get the procedure draft from

请求头

xi-api-keystring可选

请求

This endpoint expects an optional object.
namestring可选<=200 characters默认为
Procedure name
contentstring可选默认为
Initial procedure content
typeenum可选默认为 free_form
Procedure type
允许的值:
triggerstring可选

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

响应

Successful Response
procedure_idstring
ID of the created procedure

错误

422
Procedures Create Request Unprocessable Entity Error