Skip to navigation

Update Rule

Replace an existing rule on the named receptionist. Send every field: an omitted priority resets to strict.

Path parameters

agent_idstringRequired

ID of the receptionist. List them with GET /v1/reception/customer-facing-agents.

rule_idstringRequired

ID of the rule. Returned when you add one, and listed in the receptionist’s config.agent_rules.

Headers

xi-api-keystringOptional
xi-workspace-idstringRequired
The customer workspace a reseller's API key acts on.

Request

This endpoint expects an object.
titlestringRequired
Title of the rule.
descriptionstringRequired
What the agent should do, in detail.
priorityenumOptionalDefaults to strict

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

Allowed values:

Response

Successful Response
titlestring
Title of the rule.
descriptionstring
What the agent should do, in detail.
priorityenumOptionalDefaults to strict

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

Allowed values:
idstringOptional
ID of the rule.
created_at_unixintegerOptional
When the rule was created, as a Unix timestamp in seconds.

Errors

422
Unprocessable Entity Error