> ## 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.

# Move knowledge folder

> Move a folder under a different parent in the knowledge tree.

Use this route to change where a folder sits in the tree.

## Headers

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

<ParamField header="Content-Type" type="string" required>
  `application/json`
</ParamField>

## Path parameters

<ParamField path="id" type="string" required>
  Folder ID to move.
</ParamField>

## Body parameters

<ParamField body="parentFolderId" type="string" required>
  Destination parent folder ID.
</ParamField>

## Response

Returns the moved knowledge folder object. See [Organize knowledge](/en/api-reference/organize-knowledge) for the shared folder fields.

<Note>
  The response reflects the folder after its `parentFolderId` has been updated.
</Note>

## Errors

<AccordionGroup>
  <Accordion title="400 Bad Request" icon="circle-exclamation">
    The request body is malformed.
  </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.
  </Accordion>

  <Accordion title="404 or Not Acceptable" icon="triangle-exclamation">
    The folder does not exist, the destination parent folder does not exist, or the requested tree change is not allowed.
  </Accordion>
</AccordionGroup>
