Skip to main content
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

Returns 201 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

A path parameter is empty, or the specified rule is a Business Rule.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope required for this route.
The rule or version does not exist in your workspace, or the version does not belong to the rule.