Skip to main content
PATCH
/
v2
/
hc-rules
/
{id}
/
public
Update rule
curl --request PATCH \
  --url https://api-prod.usefini.com/v2/hc-rules/{id}/public \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "flowConfig": {},
  "botIds": [
    "<string>"
  ],
  "inputSchema": [
    {}
  ]
}
'
Updates one existing Rule.

Headers

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

Path parameters

id
string
required
Rule ID to update.

Body parameters

name
string
Updated rule name.
description
string
Updated routing description.
flowConfig
RuleNodeConfig
Updated rule tree.
botIds
string[]
Updated agent assignments.
inputSchema
InputSchemaField[]
Updated runtime input schema.

Response

Returns the updated Rule.

Errors

The body is malformed, a referenced agent ID is invalid, or the flowConfig references a missing or unsupported 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 rule ID does not exist in your workspace.
Fini failed while updating the rule in storage.