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

# Update Song

> Mark a song as liked or played

Update song flags (liked, played). At least one field is required.

## Request

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token with your API key
</ParamField>

### Path Parameters

<ParamField path="id" type="string" required>
  Song UUID
</ParamField>

### Body

<ParamField body="liked" type="boolean">
  Mark as liked (true/false)
</ParamField>

<ParamField body="played" type="boolean">
  Mark as played (true only; used to track play history)
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  True on success
</ResponseField>

<ResponseField name="data" type="object">
  Updated Song object
</ResponseField>

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.60db.ai/songs/song-550e8400 \
    -H "Authorization: Bearer your-api-key" \
    -H "Content-Type: application/json" \
    -d '{"liked": true}'
  ```

  ```javascript JavaScript theme={null}
  await client.music.update('song-550e8400', { liked: true });
  ```

  ```python Python theme={null}
  client.music.update('song-550e8400', liked=True)
  ```
</RequestExample>
