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

# Update an album

> Update an album’s title, description, cover or visibility.

Send at least one recognized field. Restrict this operation to the album creator in your product.

## Headers and parameters

<ParamField path="id" type="string" required>
  Resource ID.
</ParamField>

## JSON body

<ParamField body="title" type="string">
  Minimum length: `1`.
</ParamField>

<ParamField body="description" type="string | null" />

<ParamField body="cover" type="string | null" />

<ParamField body="public" type="boolean" />

## Response (200)

Success.

<ResponseField name="id" type="string" required />

<ResponseField name="title" type="string" required />

<ResponseField name="creator" type="string" required />

<ResponseField name="description" type="string | null" />

<ResponseField name="cover" type="string | null" />

<ResponseField name="public" type="boolean" />

<ResponseField name="created_at" type="string" />

## Errors

Failed JSON responses contain an `error` string. Check the HTTP status before reading a successful result. See [job handling](/dev/guides/jobs) for interrupted or uncertain submissions.

| Status | Meaning |
| - | - |
| `400` | Invalid request. |
| `500` | Request failed. |

<RequestExample>
  ```bash cURL theme={null}
  curl --fail-with-body -X PATCH "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')" \
    -H "Content-Type: application/json" \
    --data "$(jq -nc '{
    "title": "Night circuits, volume 1"
  }')"
  ```
</RequestExample>


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