跳到导航

Update Procedure Visibility

Update or clear the visibility of a procedure draft. This is the condition that controls if a procedure is visible to the agent in its procedure menu.

路径参数

agent_idstring必需

要获取流程草稿的智能体 ID

branch_idstring必需
Branch ID to get the procedure draft from
procedure_idstring必需

流程 ID

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
visibilityobject可选
The condition that controls if the procedure is visible to the agent in its procedure menu. Null clears it, so the procedure is always visible.

响应

成功响应

procedure_idstring

流程 ID

namestring<=200 characters

流程名称

contentstring<=50000 characters

流程内容

typeenum默认为 free_form

流程类型

允许的值:
triggerstring可选默认为

智能体应在何时使用此流程。空字符串表示这是一个子流程,仅应在其他流程引用它时启动。

folder_parent_idstring可选

此流程所在文件夹的流程 ID。None 表示根目录。

visibilityobject可选
The condition that controls if the procedure is visible to the agent in its procedure menu. None means always visible.

错误

422
Procedures Update Visibility Request Unprocessable Entity Error