curl --fail-with-body -X POST "$RAWCHUNKS_API/api/editing/source?songId=$(jq -nr --arg v "$SONG_ID" '$v|@uri')" \
-H "x-session-user-address: $USER_ADDRESS" \
-F "file=@source.wav;type=audio/wav"
{
"url": "https://example.com/composition.wav"
}
Editing
Upload source audio
Upload a rendered WAV for an existing editable song.
POST
/
api
/
editing
/
source
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/editing/source?songId=$(jq -nr --arg v "$SONG_ID" '$v|@uri')" \
-H "x-session-user-address: $USER_ADDRESS" \
-F "file=@source.wav;type=audio/wav"
{
"url": "https://example.com/composition.wav"
}
Uploading returns a reference URL. It does not replace the active master or create a take. Supply the URL as
srcAudioUrl to an edit or merge.
Render and merge candidates.
Headers and parameters
string
required
Song receiving the source.
string
required
Selected account address. Required for owner-scoped reads and writes. It identifies the account; your product must authenticate its own users.
Multipart body
file
required
RIFF WAV, PCM or IEEE float. Maximum 50 MiB.
Response (201)
Success.string
required
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling 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. |
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/editing/source?songId=$(jq -nr --arg v "$SONG_ID" '$v|@uri')" \
-H "x-session-user-address: $USER_ADDRESS" \
-F "file=@source.wav;type=audio/wav"
{
"url": "https://example.com/composition.wav"
}
⌘I