Skip to main content
POST
/
v2
/
hc-rules
/
{id}
/
duplicate
/
public
Duplicate rule
curl --request POST \
  --url https://api-prod.usefini.com/v2/hc-rules/{id}/duplicate/public \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
Creates a copy of 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 duplicate.

Body parameters

name
string
Optional name override for the duplicated rule.
description
string
Optional description override for the duplicated rule.

Response

Returns the duplicated Rule.
Current controller behavior:
  • Duplicating an intent rule creates a draft copy.
  • Duplicating a business rule creates a non-draft copy.
  • The duplicate response is returned directly from storage, so botIds are not expanded. Call Get rule if you need the enriched read shape.

Errors

Current service behavior: template-based rules cannot be duplicated.
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 creating the duplicate in storage.