Skip to main content
POST
Create Business Rule
Creates a Business Rule. Business Rules are stored directly and do not have a draft lifecycle.

Headers

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

Body parameters

string
required
Rule name.
string
required
Description of the escalation workflow.
string
required
Send business.
string
Business Rule source. The current enum value is widget.
string
Business Rule trigger. The current enum value is on_escalation.
RuleNodeConfig
Required for a custom Business Rule. Do not send it for a template-based rule.
string
Template ID from List default Business Rules. A template-based rule cannot also define flowConfig.
InputSchemaField[]
Runtime bindings for Business Rule inputs, including template inputs.
string[]
Agent IDs to assign after creation.

Response

Returns the created Rule.

Errors

The body is malformed, a custom rule has no flowConfig, a template is invalid, a template-based rule also defines flowConfig, or a referenced agent, action, or widget form is invalid.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope required for this route.