Restore intent-rule version as draft
Intent Rules
Restore intent-rule version as draft
Copy an intent-rule version into a new draft.
POST
Restore intent-rule version as draft
Creates a new draft from any version of an intent rule. The source version is unchanged.
This endpoint supports intent rules only.
Headers
string
required
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.Path parameters
string
required
Intent-rule ID.
string
required
Version to copy into a new draft.
Response
Returns201 Created with the new draft Rule. The response has status: "DRAFT" and botIds: [].
The new draft’s
parentVersionId is the rule’s current published version, not necessarily the restored source version. This is what the service uses to detect stale drafts before publication.Errors
400 Bad Request
400 Bad Request
A path parameter is empty, or the specified rule is a Business Rule.
403 Forbidden
403 Forbidden
The API key does not include the
write scope required for this route.404 Not Found
404 Not Found
The rule or version does not exist in your workspace, or the version does not belong to the rule.

