跳到导航

Add Rule

Add a behavioral rule to the named receptionist.

路径参数

agent_idstring必需

请求头

xi-api-keystring可选
xi-workspace-idstring or null可选
The customer workspace a reseller's API key acts on.

请求

This endpoint expects an object.
titlestring必需
Title of the rule.
descriptionstring必需
What the agent should do, in detail.
priorityenum可选默认为 strict

strict: the agent must always follow the rule; suggestion: a guideline.

允许的值:

响应

成功响应

titlestring
Title of the rule.
descriptionstring
What the agent should do, in detail.
priorityenum可选默认为 strict

strict: the agent must always follow the rule; suggestion: a guideline.

允许的值:
idstring可选
created_at_unixinteger可选

Unix timestamp (seconds since epoch)

错误

422
Unprocessable Entity Error