> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Restore intent-rule version as draft

> Copy an intent-rule version into a new draft.

Creates a new draft from any version of an intent rule. The source version is unchanged.

<Info>
  This endpoint supports intent rules only.
</Info>

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `write` scope.
</ParamField>

## Path parameters

<ParamField path="id" type="string" required>
  Intent-rule ID.
</ParamField>

<ParamField path="versionId" type="string" required>
  Version to copy into a new draft.
</ParamField>

## Response

Returns `201 Created` with the new draft [`Rule`](/en/api-reference/rules#rule-object). The response has `status: "DRAFT"` and `botIds: []`.

<Note>
  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.
</Note>

## Errors

<AccordionGroup>
  <Accordion title="400 Bad Request" icon="circle-exclamation">
    A path parameter is empty, or the specified rule is a Business Rule.
  </Accordion>

  <Accordion title="401 Unauthorized" icon="lock">
    The API key is missing, malformed, revoked, or invalid.
  </Accordion>

  <Accordion title="403 Forbidden" icon="shield-halved">
    The API key does not include the `write` scope required for this route.
  </Accordion>

  <Accordion title="404 Not Found" icon="ghost">
    The rule or version does not exist in your workspace, or the version does not belong to the rule.
  </Accordion>
</AccordionGroup>
