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

# PATCH /folders/:folderId

> Actualice el nombre de una carpeta.

## Endpoint

```
PATCH /v1/folders/{folderId}
```

## Solicitud

```bash theme={null}
curl -X PATCH "http://client-omni-api.argosidentity.com/v1/folders/{folderId}" \
  -H "x-api-key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "ID Documents"
  }'
```

### Cuerpo de la solicitud

<ResponseField name="name" type="string" required>
  Nuevo nombre del folder
</ResponseField>

## Respuesta

```json theme={null}
{
  "id": "fld_xyz789",
  "profileId": "pf_a1b2c3d4",
  "name": "ID Documents",
  "isDefault": false,
  "itemsCount": 3,
  "createdAt": "2026-03-15T10:30:00Z",
  "updatedAt": "2026-03-15T11:00:00Z"
}
```

<Warning>
  El folder **default** no se puede renombrar ni eliminar.
</Warning>

### Códigos de error

| Status | Code                           | Descripción                             |
| ------ | ------------------------------ | --------------------------------------- |
| 400    | `CANNOT_MODIFY_DEFAULT_FOLDER` | El folder default no se puede renombrar |
| 404    | `FOLDER_NOT_FOUND`             | Folder no encontrado                    |
