curl --request PUT \
--url https://api.royalti.io/asset/{id}/ddex-metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ddexMetadata": {
"releaseType": "Single",
"recordLabel": "Example Records"
},
"resourceReference": "A123456789",
"technicalResourceDetails": {
"fileFormat": "WAV",
"audioCodec": "PCM",
"bitrate": 1411,
"sampleRate": 44100,
"duration": "PT3M45S"
}
}
'{
"status": "success",
"message": "DDEX metadata updated successfully",
"data": {
"id": "<string>",
"ddexMetadata": {},
"resourceReference": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}PUT /asset//ddex-metadata
curl --request PUT \
--url https://api.royalti.io/asset/{id}/ddex-metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ddexMetadata": {
"releaseType": "Single",
"recordLabel": "Example Records"
},
"resourceReference": "A123456789",
"technicalResourceDetails": {
"fileFormat": "WAV",
"audioCodec": "PCM",
"bitrate": 1411,
"sampleRate": 44100,
"duration": "PT3M45S"
}
}
'{
"status": "success",
"message": "DDEX metadata updated successfully",
"data": {
"id": "<string>",
"ddexMetadata": {},
"resourceReference": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}PUT
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the asset |
| Parameter | Type | Description |
|---|---|---|
| ddexMetadata | object | DDEX metadata object |
| resourceReference | string | Resource reference identifier |
| technicalResourceDetails | object | Technical details of the resource |
| soundRecordingDetails | object | Sound recording specific details |
| musicalWorkReference | object | Musical work reference information |
const response = await fetch('https://api.royalti.io/asset/example-id/ddex-metadata', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"ddexMetadata": {},
"resourceReference": "A123456789",
"technicalResourceDetails": {
"fileFormat": "WAV",
"audioCodec": "PCM",
"bitrate": 1411,
"sampleRate": 44100,
"duration": "PT3M45S"
},
"soundRecordingDetails": {
"recordingDate": "2024-01-15",
"recordingLocation": "Abbey Road Studios",
"language": "en"
},
"musicalWorkReference": {
"workId": "work-123",
"iswc": "T-123456789-0"
}
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Asset ID
DDEX metadata object
Resource reference identifier
"A123456789"
Technical details of the resource
Show child attributes
Sound recording specific details
Show child attributes
Musical work reference information
Show child attributes