Skip to main content
PATCH
Update intent rule
Updates intent-rule content by creating a new version.
Send status: "DRAFT" explicitly when editing a draft. If omitted, a rule with a published version is updated by creating a new published version. A draft-only rule defaults to updating its draft.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
string
required
application/json

Path parameters

string
required
Intent-rule ID.

Body parameters

string
Updated rule name.
string
Updated routing description.
RuleNodeConfig
Updated rule tree.
string
Version state to update: DRAFT or PUBLISHED. ARCHIVED is rejected.
string[]
Updated agent assignments for a published rule. Draft updates cannot include this field.

Response

Returns the updated Rule.

Errors

The body is malformed, a draft update includes botIds, an agent ID is invalid, or flowConfig references a missing action or widget form.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope required for this route.
The intent rule does not exist in your workspace.