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

# Open an editable version

> Open an owned song for further editing.

An unminted song returns itself. A minted song returns a private draft with copied arrangement and cleared mint fields. An existing draft for the same basis can be reused. Always continue with the returned `id`.

## Headers and parameters

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

<ParamField header="x-session-user-address" type="string" required>
  Selected account address. Required for owner-scoped reads and writes. It identifies the account; your product must authenticate its own users.
</ParamField>

## Response (201)

Success.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<ResponseField name="version" type="integer" />

<ResponseField name="licenses" type="integer" />

<ResponseField name="stream_price" type="number">
  Listed USDC per minute.
</ResponseField>

<ResponseField name="license_price" type="number">
  Listed USDC per license.
</ResponseField>

<ResponseField name="duration" type="number | null">
  Seconds.
</ResponseField>

<ResponseField name="tags" type="string[]" />

<ResponseField name="public" type="boolean">
  Catalog visibility. Media URLs are not private storage.
</ResponseField>

## 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. |
| `403` | Account does not match resource. |
| `404` | Resource not found. |
| `409` | Resource conflict; reload state or open an editable version. |
| `500` | Request failed. |

<RequestExample>
  ```bash cURL theme={null}
  curl --fail-with-body -X POST "$RAWCHUNKS_API/api/songs/$(jq -nr --arg v "$ID" '$v|@uri')/version" \
    -H "x-session-user-address: $USER_ADDRESS"
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "sng-example",
    "title": "Night circuit",
    "creator": "0x1111111111111111111111111111111111111111",
    "url": "https://example.com/final.wav"
  }
  ```
</ResponseExample>


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