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

# Update Folder

> Update a folder's name

Update the name of an existing folder.

## Path parameters

<ParamField path="id" type="string" required>
  The folder UUID.
</ParamField>

## Body parameters

<ParamField body="name" type="string">
  New folder name. Max 255 characters.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.reel25.com/api/v1/folders/f1a2b3c4-... \
    -H "Authorization: Bearer reel25_sk_..." \
    -H "Content-Type: application/json" \
    -d '{"name": "Top Competitors Q1"}'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.reel25.com/api/v1/folders/f1a2b3c4-...',
    {
      method: 'PATCH',
      headers: {
        'Authorization': 'Bearer reel25_sk_...',
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({ name: 'Top Competitors Q1' }),
    }
  );
  ```

  ```python Python theme={null}
  import requests

  response = requests.patch(
      f'https://api.reel25.com/api/v1/folders/{folder_id}',
      headers={
          'Authorization': 'Bearer reel25_sk_...',
          'Content-Type': 'application/json',
      },
      json={'name': 'Top Competitors Q1'}
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "id": "f1a2b3c4-...",
      "name": "Top Competitors Q1"
    },
    "message": "Folder updated"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.