curl --request PUT \
--url https://api.royalti.io/asset/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Midnight City",
"mainArtist": [
"M83",
"M47"
],
"displayArtist": "M83",
"id": "550e8400-e29b-41d4-a716-446655440000",
"otherArtist": [
"Featured Artist"
],
"type": "Audio",
"version": "Album Version",
"isrc": "USRC17607839",
"iswc": "T-123456789-0",
"lyrics": "Waiting in a car...",
"mainGenre": [
"Electronic",
"Synthpop"
],
"subGenre": [
"Synthwave"
],
"contributors": {
"producers": [
"Producer Name"
],
"mixers": [
"Mixer Name"
],
"songwriters": [
"Songwriter Name"
]
},
"externalId": "EXT-12345",
"extra": {
"notes": "Recorded in Abbey Road Studios"
},
"metadata": {
"releaseYear": 2011
},
"assetIDs": [
"asset-1",
"asset-2"
],
"explicit": "clean",
"label": "Royalti Records",
"copyright": "© 2024 Royalti Records",
"publisher": "Royalti Publishing",
"copyrightOwner": "Royalti Music Group",
"artists": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
},
"660e8400-e29b-41d4-a716-446655440001"
],
"split": [
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 60
},
{
"user": "550e8400-e29b-41d4-a716-446655440003",
"share": 40
}
],
"ddexMetadata": {
"releaseType": "Single",
"recordLabel": "Royalti Records"
},
"resourceReference": "SR123456789",
"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"
},
"enableDDEX": false,
"focusTrack": false,
"danceStyle": [
"Electronic Dance"
],
"rhythmStyle": [
"Upbeat"
],
"instrumentation": [
"Synthesizer",
"Drums"
],
"recordingLocation": "Abbey Road Studios",
"recordingDate": "2024-01-15",
"alternativeTitles": [
"Alt Title 1",
"Alt Title 2"
],
"chartPositions": [
{
"chart": "Billboard Hot 100",
"position": 10,
"date": "2024-01-01"
}
],
"reviews": [
{
"reviewer": "Music Magazine",
"rating": 4.5,
"text": "Great track!"
}
],
"awards": [
{
"name": "Best Electronic Song",
"year": 2024
}
],
"socialMediaHandles": {
"twitter": "@artistname",
"instagram": "@artistname"
},
"language": "en",
"mood": [
"Energetic",
"Uplifting"
],
"tempo": 128,
"key": "C Major",
"productionYear": 2024,
"createdAt": "2026-01-15T02:52:25.458Z",
"updatedAt": "2026-01-15T03:48:31.763Z",
"Artists": [
{
"id": "e0dc6000-af34-4071-8a85-dcadace05c36",
"artistName": "nedJamez",
"type": "primary"
}
],
"Products": []
}
'import requests
url = "https://api.royalti.io/asset/{id}"
payload = {
"title": "Midnight City",
"mainArtist": ["M83", "M47"],
"displayArtist": "M83",
"id": "550e8400-e29b-41d4-a716-446655440000",
"otherArtist": ["Featured Artist"],
"type": "Audio",
"version": "Album Version",
"isrc": "USRC17607839",
"iswc": "T-123456789-0",
"lyrics": "Waiting in a car...",
"mainGenre": ["Electronic", "Synthpop"],
"subGenre": ["Synthwave"],
"contributors": {
"producers": ["Producer Name"],
"mixers": ["Mixer Name"],
"songwriters": ["Songwriter Name"]
},
"externalId": "EXT-12345",
"extra": { "notes": "Recorded in Abbey Road Studios" },
"metadata": { "releaseYear": 2011 },
"assetIDs": ["asset-1", "asset-2"],
"explicit": "clean",
"label": "Royalti Records",
"copyright": "© 2024 Royalti Records",
"publisher": "Royalti Publishing",
"copyrightOwner": "Royalti Music Group",
"artists": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
},
"660e8400-e29b-41d4-a716-446655440001"
],
"split": [
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 60
},
{
"user": "550e8400-e29b-41d4-a716-446655440003",
"share": 40
}
],
"ddexMetadata": {
"releaseType": "Single",
"recordLabel": "Royalti Records"
},
"resourceReference": "SR123456789",
"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"
},
"enableDDEX": False,
"focusTrack": False,
"danceStyle": ["Electronic Dance"],
"rhythmStyle": ["Upbeat"],
"instrumentation": ["Synthesizer", "Drums"],
"recordingLocation": "Abbey Road Studios",
"recordingDate": "2024-01-15",
"alternativeTitles": ["Alt Title 1", "Alt Title 2"],
"chartPositions": [
{
"chart": "Billboard Hot 100",
"position": 10,
"date": "2024-01-01"
}
],
"reviews": [
{
"reviewer": "Music Magazine",
"rating": 4.5,
"text": "Great track!"
}
],
"awards": [
{
"name": "Best Electronic Song",
"year": 2024
}
],
"socialMediaHandles": {
"twitter": "@artistname",
"instagram": "@artistname"
},
"language": "en",
"mood": ["Energetic", "Uplifting"],
"tempo": 128,
"key": "C Major",
"productionYear": 2024,
"createdAt": "2026-01-15T02:52:25.458Z",
"updatedAt": "2026-01-15T03:48:31.763Z",
"Artists": [
{
"id": "e0dc6000-af34-4071-8a85-dcadace05c36",
"artistName": "nedJamez",
"type": "primary"
}
],
"Products": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Midnight City',
mainArtist: ['M83', 'M47'],
displayArtist: 'M83',
id: '550e8400-e29b-41d4-a716-446655440000',
otherArtist: ['Featured Artist'],
type: 'Audio',
version: 'Album Version',
isrc: 'USRC17607839',
iswc: 'T-123456789-0',
lyrics: 'Waiting in a car...',
mainGenre: ['Electronic', 'Synthpop'],
subGenre: ['Synthwave'],
contributors: {
producers: ['Producer Name'],
mixers: ['Mixer Name'],
songwriters: ['Songwriter Name']
},
externalId: 'EXT-12345',
extra: {notes: 'Recorded in Abbey Road Studios'},
metadata: {releaseYear: 2011},
assetIDs: ['asset-1', 'asset-2'],
explicit: 'clean',
label: 'Royalti Records',
copyright: '© 2024 Royalti Records',
publisher: 'Royalti Publishing',
copyrightOwner: 'Royalti Music Group',
artists: [
{id: '550e8400-e29b-41d4-a716-446655440000', type: 'primary'},
'660e8400-e29b-41d4-a716-446655440001'
],
split: [
{user: '550e8400-e29b-41d4-a716-446655440002', share: 60},
{user: '550e8400-e29b-41d4-a716-446655440003', share: 40}
],
ddexMetadata: {releaseType: 'Single', recordLabel: 'Royalti Records'},
resourceReference: 'SR123456789',
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'},
enableDDEX: false,
focusTrack: false,
danceStyle: ['Electronic Dance'],
rhythmStyle: ['Upbeat'],
instrumentation: ['Synthesizer', 'Drums'],
recordingLocation: 'Abbey Road Studios',
recordingDate: '2024-01-15',
alternativeTitles: ['Alt Title 1', 'Alt Title 2'],
chartPositions: [{chart: 'Billboard Hot 100', position: 10, date: '2024-01-01'}],
reviews: [{reviewer: 'Music Magazine', rating: 4.5, text: 'Great track!'}],
awards: [{name: 'Best Electronic Song', year: 2024}],
socialMediaHandles: {twitter: '@artistname', instagram: '@artistname'},
language: 'en',
mood: ['Energetic', 'Uplifting'],
tempo: 128,
key: 'C Major',
productionYear: 2024,
createdAt: '2026-01-15T02:52:25.458Z',
updatedAt: '2026-01-15T03:48:31.763Z',
Artists: [
{
id: 'e0dc6000-af34-4071-8a85-dcadace05c36',
artistName: 'nedJamez',
type: 'primary'
}
],
Products: []
})
};
fetch('https://api.royalti.io/asset/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.royalti.io/asset/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Midnight City',
'mainArtist' => [
'M83',
'M47'
],
'displayArtist' => 'M83',
'id' => '550e8400-e29b-41d4-a716-446655440000',
'otherArtist' => [
'Featured Artist'
],
'type' => 'Audio',
'version' => 'Album Version',
'isrc' => 'USRC17607839',
'iswc' => 'T-123456789-0',
'lyrics' => 'Waiting in a car...',
'mainGenre' => [
'Electronic',
'Synthpop'
],
'subGenre' => [
'Synthwave'
],
'contributors' => [
'producers' => [
'Producer Name'
],
'mixers' => [
'Mixer Name'
],
'songwriters' => [
'Songwriter Name'
]
],
'externalId' => 'EXT-12345',
'extra' => [
'notes' => 'Recorded in Abbey Road Studios'
],
'metadata' => [
'releaseYear' => 2011
],
'assetIDs' => [
'asset-1',
'asset-2'
],
'explicit' => 'clean',
'label' => 'Royalti Records',
'copyright' => '© 2024 Royalti Records',
'publisher' => 'Royalti Publishing',
'copyrightOwner' => 'Royalti Music Group',
'artists' => [
[
'id' => '550e8400-e29b-41d4-a716-446655440000',
'type' => 'primary'
],
'660e8400-e29b-41d4-a716-446655440001'
],
'split' => [
[
'user' => '550e8400-e29b-41d4-a716-446655440002',
'share' => 60
],
[
'user' => '550e8400-e29b-41d4-a716-446655440003',
'share' => 40
]
],
'ddexMetadata' => [
'releaseType' => 'Single',
'recordLabel' => 'Royalti Records'
],
'resourceReference' => 'SR123456789',
'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'
],
'enableDDEX' => false,
'focusTrack' => false,
'danceStyle' => [
'Electronic Dance'
],
'rhythmStyle' => [
'Upbeat'
],
'instrumentation' => [
'Synthesizer',
'Drums'
],
'recordingLocation' => 'Abbey Road Studios',
'recordingDate' => '2024-01-15',
'alternativeTitles' => [
'Alt Title 1',
'Alt Title 2'
],
'chartPositions' => [
[
'chart' => 'Billboard Hot 100',
'position' => 10,
'date' => '2024-01-01'
]
],
'reviews' => [
[
'reviewer' => 'Music Magazine',
'rating' => 4.5,
'text' => 'Great track!'
]
],
'awards' => [
[
'name' => 'Best Electronic Song',
'year' => 2024
]
],
'socialMediaHandles' => [
'twitter' => '@artistname',
'instagram' => '@artistname'
],
'language' => 'en',
'mood' => [
'Energetic',
'Uplifting'
],
'tempo' => 128,
'key' => 'C Major',
'productionYear' => 2024,
'createdAt' => '2026-01-15T02:52:25.458Z',
'updatedAt' => '2026-01-15T03:48:31.763Z',
'Artists' => [
[
'id' => 'e0dc6000-af34-4071-8a85-dcadace05c36',
'artistName' => 'nedJamez',
'type' => 'primary'
]
],
'Products' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.royalti.io/asset/{id}"
payload := strings.NewReader("{\n \"title\": \"Midnight City\",\n \"mainArtist\": [\n \"M83\",\n \"M47\"\n ],\n \"displayArtist\": \"M83\",\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"otherArtist\": [\n \"Featured Artist\"\n ],\n \"type\": \"Audio\",\n \"version\": \"Album Version\",\n \"isrc\": \"USRC17607839\",\n \"iswc\": \"T-123456789-0\",\n \"lyrics\": \"Waiting in a car...\",\n \"mainGenre\": [\n \"Electronic\",\n \"Synthpop\"\n ],\n \"subGenre\": [\n \"Synthwave\"\n ],\n \"contributors\": {\n \"producers\": [\n \"Producer Name\"\n ],\n \"mixers\": [\n \"Mixer Name\"\n ],\n \"songwriters\": [\n \"Songwriter Name\"\n ]\n },\n \"externalId\": \"EXT-12345\",\n \"extra\": {\n \"notes\": \"Recorded in Abbey Road Studios\"\n },\n \"metadata\": {\n \"releaseYear\": 2011\n },\n \"assetIDs\": [\n \"asset-1\",\n \"asset-2\"\n ],\n \"explicit\": \"clean\",\n \"label\": \"Royalti Records\",\n \"copyright\": \"© 2024 Royalti Records\",\n \"publisher\": \"Royalti Publishing\",\n \"copyrightOwner\": \"Royalti Music Group\",\n \"artists\": [\n {\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"type\": \"primary\"\n },\n \"660e8400-e29b-41d4-a716-446655440001\"\n ],\n \"split\": [\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440002\",\n \"share\": 60\n },\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440003\",\n \"share\": 40\n }\n ],\n \"ddexMetadata\": {\n \"releaseType\": \"Single\",\n \"recordLabel\": \"Royalti Records\"\n },\n \"resourceReference\": \"SR123456789\",\n \"technicalResourceDetails\": {\n \"fileFormat\": \"WAV\",\n \"audioCodec\": \"PCM\",\n \"bitrate\": 1411,\n \"sampleRate\": 44100,\n \"duration\": \"PT3M45S\"\n },\n \"soundRecordingDetails\": {\n \"recordingDate\": \"2024-01-15\",\n \"recordingLocation\": \"Abbey Road Studios\",\n \"language\": \"en\"\n },\n \"musicalWorkReference\": {\n \"workId\": \"work-123\",\n \"iswc\": \"T-123456789-0\"\n },\n \"enableDDEX\": false,\n \"focusTrack\": false,\n \"danceStyle\": [\n \"Electronic Dance\"\n ],\n \"rhythmStyle\": [\n \"Upbeat\"\n ],\n \"instrumentation\": [\n \"Synthesizer\",\n \"Drums\"\n ],\n \"recordingLocation\": \"Abbey Road Studios\",\n \"recordingDate\": \"2024-01-15\",\n \"alternativeTitles\": [\n \"Alt Title 1\",\n \"Alt Title 2\"\n ],\n \"chartPositions\": [\n {\n \"chart\": \"Billboard Hot 100\",\n \"position\": 10,\n \"date\": \"2024-01-01\"\n }\n ],\n \"reviews\": [\n {\n \"reviewer\": \"Music Magazine\",\n \"rating\": 4.5,\n \"text\": \"Great track!\"\n }\n ],\n \"awards\": [\n {\n \"name\": \"Best Electronic Song\",\n \"year\": 2024\n }\n ],\n \"socialMediaHandles\": {\n \"twitter\": \"@artistname\",\n \"instagram\": \"@artistname\"\n },\n \"language\": \"en\",\n \"mood\": [\n \"Energetic\",\n \"Uplifting\"\n ],\n \"tempo\": 128,\n \"key\": \"C Major\",\n \"productionYear\": 2024,\n \"createdAt\": \"2026-01-15T02:52:25.458Z\",\n \"updatedAt\": \"2026-01-15T03:48:31.763Z\",\n \"Artists\": [\n {\n \"id\": \"e0dc6000-af34-4071-8a85-dcadace05c36\",\n \"artistName\": \"nedJamez\",\n \"type\": \"primary\"\n }\n ],\n \"Products\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.royalti.io/asset/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Midnight City\",\n \"mainArtist\": [\n \"M83\",\n \"M47\"\n ],\n \"displayArtist\": \"M83\",\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"otherArtist\": [\n \"Featured Artist\"\n ],\n \"type\": \"Audio\",\n \"version\": \"Album Version\",\n \"isrc\": \"USRC17607839\",\n \"iswc\": \"T-123456789-0\",\n \"lyrics\": \"Waiting in a car...\",\n \"mainGenre\": [\n \"Electronic\",\n \"Synthpop\"\n ],\n \"subGenre\": [\n \"Synthwave\"\n ],\n \"contributors\": {\n \"producers\": [\n \"Producer Name\"\n ],\n \"mixers\": [\n \"Mixer Name\"\n ],\n \"songwriters\": [\n \"Songwriter Name\"\n ]\n },\n \"externalId\": \"EXT-12345\",\n \"extra\": {\n \"notes\": \"Recorded in Abbey Road Studios\"\n },\n \"metadata\": {\n \"releaseYear\": 2011\n },\n \"assetIDs\": [\n \"asset-1\",\n \"asset-2\"\n ],\n \"explicit\": \"clean\",\n \"label\": \"Royalti Records\",\n \"copyright\": \"© 2024 Royalti Records\",\n \"publisher\": \"Royalti Publishing\",\n \"copyrightOwner\": \"Royalti Music Group\",\n \"artists\": [\n {\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"type\": \"primary\"\n },\n \"660e8400-e29b-41d4-a716-446655440001\"\n ],\n \"split\": [\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440002\",\n \"share\": 60\n },\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440003\",\n \"share\": 40\n }\n ],\n \"ddexMetadata\": {\n \"releaseType\": \"Single\",\n \"recordLabel\": \"Royalti Records\"\n },\n \"resourceReference\": \"SR123456789\",\n \"technicalResourceDetails\": {\n \"fileFormat\": \"WAV\",\n \"audioCodec\": \"PCM\",\n \"bitrate\": 1411,\n \"sampleRate\": 44100,\n \"duration\": \"PT3M45S\"\n },\n \"soundRecordingDetails\": {\n \"recordingDate\": \"2024-01-15\",\n \"recordingLocation\": \"Abbey Road Studios\",\n \"language\": \"en\"\n },\n \"musicalWorkReference\": {\n \"workId\": \"work-123\",\n \"iswc\": \"T-123456789-0\"\n },\n \"enableDDEX\": false,\n \"focusTrack\": false,\n \"danceStyle\": [\n \"Electronic Dance\"\n ],\n \"rhythmStyle\": [\n \"Upbeat\"\n ],\n \"instrumentation\": [\n \"Synthesizer\",\n \"Drums\"\n ],\n \"recordingLocation\": \"Abbey Road Studios\",\n \"recordingDate\": \"2024-01-15\",\n \"alternativeTitles\": [\n \"Alt Title 1\",\n \"Alt Title 2\"\n ],\n \"chartPositions\": [\n {\n \"chart\": \"Billboard Hot 100\",\n \"position\": 10,\n \"date\": \"2024-01-01\"\n }\n ],\n \"reviews\": [\n {\n \"reviewer\": \"Music Magazine\",\n \"rating\": 4.5,\n \"text\": \"Great track!\"\n }\n ],\n \"awards\": [\n {\n \"name\": \"Best Electronic Song\",\n \"year\": 2024\n }\n ],\n \"socialMediaHandles\": {\n \"twitter\": \"@artistname\",\n \"instagram\": \"@artistname\"\n },\n \"language\": \"en\",\n \"mood\": [\n \"Energetic\",\n \"Uplifting\"\n ],\n \"tempo\": 128,\n \"key\": \"C Major\",\n \"productionYear\": 2024,\n \"createdAt\": \"2026-01-15T02:52:25.458Z\",\n \"updatedAt\": \"2026-01-15T03:48:31.763Z\",\n \"Artists\": [\n {\n \"id\": \"e0dc6000-af34-4071-8a85-dcadace05c36\",\n \"artistName\": \"nedJamez\",\n \"type\": \"primary\"\n }\n ],\n \"Products\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.royalti.io/asset/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Midnight City\",\n \"mainArtist\": [\n \"M83\",\n \"M47\"\n ],\n \"displayArtist\": \"M83\",\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"otherArtist\": [\n \"Featured Artist\"\n ],\n \"type\": \"Audio\",\n \"version\": \"Album Version\",\n \"isrc\": \"USRC17607839\",\n \"iswc\": \"T-123456789-0\",\n \"lyrics\": \"Waiting in a car...\",\n \"mainGenre\": [\n \"Electronic\",\n \"Synthpop\"\n ],\n \"subGenre\": [\n \"Synthwave\"\n ],\n \"contributors\": {\n \"producers\": [\n \"Producer Name\"\n ],\n \"mixers\": [\n \"Mixer Name\"\n ],\n \"songwriters\": [\n \"Songwriter Name\"\n ]\n },\n \"externalId\": \"EXT-12345\",\n \"extra\": {\n \"notes\": \"Recorded in Abbey Road Studios\"\n },\n \"metadata\": {\n \"releaseYear\": 2011\n },\n \"assetIDs\": [\n \"asset-1\",\n \"asset-2\"\n ],\n \"explicit\": \"clean\",\n \"label\": \"Royalti Records\",\n \"copyright\": \"© 2024 Royalti Records\",\n \"publisher\": \"Royalti Publishing\",\n \"copyrightOwner\": \"Royalti Music Group\",\n \"artists\": [\n {\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"type\": \"primary\"\n },\n \"660e8400-e29b-41d4-a716-446655440001\"\n ],\n \"split\": [\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440002\",\n \"share\": 60\n },\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440003\",\n \"share\": 40\n }\n ],\n \"ddexMetadata\": {\n \"releaseType\": \"Single\",\n \"recordLabel\": \"Royalti Records\"\n },\n \"resourceReference\": \"SR123456789\",\n \"technicalResourceDetails\": {\n \"fileFormat\": \"WAV\",\n \"audioCodec\": \"PCM\",\n \"bitrate\": 1411,\n \"sampleRate\": 44100,\n \"duration\": \"PT3M45S\"\n },\n \"soundRecordingDetails\": {\n \"recordingDate\": \"2024-01-15\",\n \"recordingLocation\": \"Abbey Road Studios\",\n \"language\": \"en\"\n },\n \"musicalWorkReference\": {\n \"workId\": \"work-123\",\n \"iswc\": \"T-123456789-0\"\n },\n \"enableDDEX\": false,\n \"focusTrack\": false,\n \"danceStyle\": [\n \"Electronic Dance\"\n ],\n \"rhythmStyle\": [\n \"Upbeat\"\n ],\n \"instrumentation\": [\n \"Synthesizer\",\n \"Drums\"\n ],\n \"recordingLocation\": \"Abbey Road Studios\",\n \"recordingDate\": \"2024-01-15\",\n \"alternativeTitles\": [\n \"Alt Title 1\",\n \"Alt Title 2\"\n ],\n \"chartPositions\": [\n {\n \"chart\": \"Billboard Hot 100\",\n \"position\": 10,\n \"date\": \"2024-01-01\"\n }\n ],\n \"reviews\": [\n {\n \"reviewer\": \"Music Magazine\",\n \"rating\": 4.5,\n \"text\": \"Great track!\"\n }\n ],\n \"awards\": [\n {\n \"name\": \"Best Electronic Song\",\n \"year\": 2024\n }\n ],\n \"socialMediaHandles\": {\n \"twitter\": \"@artistname\",\n \"instagram\": \"@artistname\"\n },\n \"language\": \"en\",\n \"mood\": [\n \"Energetic\",\n \"Uplifting\"\n ],\n \"tempo\": 128,\n \"key\": \"C Major\",\n \"productionYear\": 2024,\n \"createdAt\": \"2026-01-15T02:52:25.458Z\",\n \"updatedAt\": \"2026-01-15T03:48:31.763Z\",\n \"Artists\": [\n {\n \"id\": \"e0dc6000-af34-4071-8a85-dcadace05c36\",\n \"artistName\": \"nedJamez\",\n \"type\": \"primary\"\n }\n ],\n \"Products\": []\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {}
}{
"status": "error",
"message": "Invalid request parameters"
}{
"status": "error",
"message": "Unauthorized"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"status": "error",
"message": "Resource not found"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}Update an asset
Update an existing asset’s information.
curl --request PUT \
--url https://api.royalti.io/asset/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Midnight City",
"mainArtist": [
"M83",
"M47"
],
"displayArtist": "M83",
"id": "550e8400-e29b-41d4-a716-446655440000",
"otherArtist": [
"Featured Artist"
],
"type": "Audio",
"version": "Album Version",
"isrc": "USRC17607839",
"iswc": "T-123456789-0",
"lyrics": "Waiting in a car...",
"mainGenre": [
"Electronic",
"Synthpop"
],
"subGenre": [
"Synthwave"
],
"contributors": {
"producers": [
"Producer Name"
],
"mixers": [
"Mixer Name"
],
"songwriters": [
"Songwriter Name"
]
},
"externalId": "EXT-12345",
"extra": {
"notes": "Recorded in Abbey Road Studios"
},
"metadata": {
"releaseYear": 2011
},
"assetIDs": [
"asset-1",
"asset-2"
],
"explicit": "clean",
"label": "Royalti Records",
"copyright": "© 2024 Royalti Records",
"publisher": "Royalti Publishing",
"copyrightOwner": "Royalti Music Group",
"artists": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
},
"660e8400-e29b-41d4-a716-446655440001"
],
"split": [
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 60
},
{
"user": "550e8400-e29b-41d4-a716-446655440003",
"share": 40
}
],
"ddexMetadata": {
"releaseType": "Single",
"recordLabel": "Royalti Records"
},
"resourceReference": "SR123456789",
"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"
},
"enableDDEX": false,
"focusTrack": false,
"danceStyle": [
"Electronic Dance"
],
"rhythmStyle": [
"Upbeat"
],
"instrumentation": [
"Synthesizer",
"Drums"
],
"recordingLocation": "Abbey Road Studios",
"recordingDate": "2024-01-15",
"alternativeTitles": [
"Alt Title 1",
"Alt Title 2"
],
"chartPositions": [
{
"chart": "Billboard Hot 100",
"position": 10,
"date": "2024-01-01"
}
],
"reviews": [
{
"reviewer": "Music Magazine",
"rating": 4.5,
"text": "Great track!"
}
],
"awards": [
{
"name": "Best Electronic Song",
"year": 2024
}
],
"socialMediaHandles": {
"twitter": "@artistname",
"instagram": "@artistname"
},
"language": "en",
"mood": [
"Energetic",
"Uplifting"
],
"tempo": 128,
"key": "C Major",
"productionYear": 2024,
"createdAt": "2026-01-15T02:52:25.458Z",
"updatedAt": "2026-01-15T03:48:31.763Z",
"Artists": [
{
"id": "e0dc6000-af34-4071-8a85-dcadace05c36",
"artistName": "nedJamez",
"type": "primary"
}
],
"Products": []
}
'import requests
url = "https://api.royalti.io/asset/{id}"
payload = {
"title": "Midnight City",
"mainArtist": ["M83", "M47"],
"displayArtist": "M83",
"id": "550e8400-e29b-41d4-a716-446655440000",
"otherArtist": ["Featured Artist"],
"type": "Audio",
"version": "Album Version",
"isrc": "USRC17607839",
"iswc": "T-123456789-0",
"lyrics": "Waiting in a car...",
"mainGenre": ["Electronic", "Synthpop"],
"subGenre": ["Synthwave"],
"contributors": {
"producers": ["Producer Name"],
"mixers": ["Mixer Name"],
"songwriters": ["Songwriter Name"]
},
"externalId": "EXT-12345",
"extra": { "notes": "Recorded in Abbey Road Studios" },
"metadata": { "releaseYear": 2011 },
"assetIDs": ["asset-1", "asset-2"],
"explicit": "clean",
"label": "Royalti Records",
"copyright": "© 2024 Royalti Records",
"publisher": "Royalti Publishing",
"copyrightOwner": "Royalti Music Group",
"artists": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
},
"660e8400-e29b-41d4-a716-446655440001"
],
"split": [
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 60
},
{
"user": "550e8400-e29b-41d4-a716-446655440003",
"share": 40
}
],
"ddexMetadata": {
"releaseType": "Single",
"recordLabel": "Royalti Records"
},
"resourceReference": "SR123456789",
"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"
},
"enableDDEX": False,
"focusTrack": False,
"danceStyle": ["Electronic Dance"],
"rhythmStyle": ["Upbeat"],
"instrumentation": ["Synthesizer", "Drums"],
"recordingLocation": "Abbey Road Studios",
"recordingDate": "2024-01-15",
"alternativeTitles": ["Alt Title 1", "Alt Title 2"],
"chartPositions": [
{
"chart": "Billboard Hot 100",
"position": 10,
"date": "2024-01-01"
}
],
"reviews": [
{
"reviewer": "Music Magazine",
"rating": 4.5,
"text": "Great track!"
}
],
"awards": [
{
"name": "Best Electronic Song",
"year": 2024
}
],
"socialMediaHandles": {
"twitter": "@artistname",
"instagram": "@artistname"
},
"language": "en",
"mood": ["Energetic", "Uplifting"],
"tempo": 128,
"key": "C Major",
"productionYear": 2024,
"createdAt": "2026-01-15T02:52:25.458Z",
"updatedAt": "2026-01-15T03:48:31.763Z",
"Artists": [
{
"id": "e0dc6000-af34-4071-8a85-dcadace05c36",
"artistName": "nedJamez",
"type": "primary"
}
],
"Products": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Midnight City',
mainArtist: ['M83', 'M47'],
displayArtist: 'M83',
id: '550e8400-e29b-41d4-a716-446655440000',
otherArtist: ['Featured Artist'],
type: 'Audio',
version: 'Album Version',
isrc: 'USRC17607839',
iswc: 'T-123456789-0',
lyrics: 'Waiting in a car...',
mainGenre: ['Electronic', 'Synthpop'],
subGenre: ['Synthwave'],
contributors: {
producers: ['Producer Name'],
mixers: ['Mixer Name'],
songwriters: ['Songwriter Name']
},
externalId: 'EXT-12345',
extra: {notes: 'Recorded in Abbey Road Studios'},
metadata: {releaseYear: 2011},
assetIDs: ['asset-1', 'asset-2'],
explicit: 'clean',
label: 'Royalti Records',
copyright: '© 2024 Royalti Records',
publisher: 'Royalti Publishing',
copyrightOwner: 'Royalti Music Group',
artists: [
{id: '550e8400-e29b-41d4-a716-446655440000', type: 'primary'},
'660e8400-e29b-41d4-a716-446655440001'
],
split: [
{user: '550e8400-e29b-41d4-a716-446655440002', share: 60},
{user: '550e8400-e29b-41d4-a716-446655440003', share: 40}
],
ddexMetadata: {releaseType: 'Single', recordLabel: 'Royalti Records'},
resourceReference: 'SR123456789',
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'},
enableDDEX: false,
focusTrack: false,
danceStyle: ['Electronic Dance'],
rhythmStyle: ['Upbeat'],
instrumentation: ['Synthesizer', 'Drums'],
recordingLocation: 'Abbey Road Studios',
recordingDate: '2024-01-15',
alternativeTitles: ['Alt Title 1', 'Alt Title 2'],
chartPositions: [{chart: 'Billboard Hot 100', position: 10, date: '2024-01-01'}],
reviews: [{reviewer: 'Music Magazine', rating: 4.5, text: 'Great track!'}],
awards: [{name: 'Best Electronic Song', year: 2024}],
socialMediaHandles: {twitter: '@artistname', instagram: '@artistname'},
language: 'en',
mood: ['Energetic', 'Uplifting'],
tempo: 128,
key: 'C Major',
productionYear: 2024,
createdAt: '2026-01-15T02:52:25.458Z',
updatedAt: '2026-01-15T03:48:31.763Z',
Artists: [
{
id: 'e0dc6000-af34-4071-8a85-dcadace05c36',
artistName: 'nedJamez',
type: 'primary'
}
],
Products: []
})
};
fetch('https://api.royalti.io/asset/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.royalti.io/asset/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Midnight City',
'mainArtist' => [
'M83',
'M47'
],
'displayArtist' => 'M83',
'id' => '550e8400-e29b-41d4-a716-446655440000',
'otherArtist' => [
'Featured Artist'
],
'type' => 'Audio',
'version' => 'Album Version',
'isrc' => 'USRC17607839',
'iswc' => 'T-123456789-0',
'lyrics' => 'Waiting in a car...',
'mainGenre' => [
'Electronic',
'Synthpop'
],
'subGenre' => [
'Synthwave'
],
'contributors' => [
'producers' => [
'Producer Name'
],
'mixers' => [
'Mixer Name'
],
'songwriters' => [
'Songwriter Name'
]
],
'externalId' => 'EXT-12345',
'extra' => [
'notes' => 'Recorded in Abbey Road Studios'
],
'metadata' => [
'releaseYear' => 2011
],
'assetIDs' => [
'asset-1',
'asset-2'
],
'explicit' => 'clean',
'label' => 'Royalti Records',
'copyright' => '© 2024 Royalti Records',
'publisher' => 'Royalti Publishing',
'copyrightOwner' => 'Royalti Music Group',
'artists' => [
[
'id' => '550e8400-e29b-41d4-a716-446655440000',
'type' => 'primary'
],
'660e8400-e29b-41d4-a716-446655440001'
],
'split' => [
[
'user' => '550e8400-e29b-41d4-a716-446655440002',
'share' => 60
],
[
'user' => '550e8400-e29b-41d4-a716-446655440003',
'share' => 40
]
],
'ddexMetadata' => [
'releaseType' => 'Single',
'recordLabel' => 'Royalti Records'
],
'resourceReference' => 'SR123456789',
'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'
],
'enableDDEX' => false,
'focusTrack' => false,
'danceStyle' => [
'Electronic Dance'
],
'rhythmStyle' => [
'Upbeat'
],
'instrumentation' => [
'Synthesizer',
'Drums'
],
'recordingLocation' => 'Abbey Road Studios',
'recordingDate' => '2024-01-15',
'alternativeTitles' => [
'Alt Title 1',
'Alt Title 2'
],
'chartPositions' => [
[
'chart' => 'Billboard Hot 100',
'position' => 10,
'date' => '2024-01-01'
]
],
'reviews' => [
[
'reviewer' => 'Music Magazine',
'rating' => 4.5,
'text' => 'Great track!'
]
],
'awards' => [
[
'name' => 'Best Electronic Song',
'year' => 2024
]
],
'socialMediaHandles' => [
'twitter' => '@artistname',
'instagram' => '@artistname'
],
'language' => 'en',
'mood' => [
'Energetic',
'Uplifting'
],
'tempo' => 128,
'key' => 'C Major',
'productionYear' => 2024,
'createdAt' => '2026-01-15T02:52:25.458Z',
'updatedAt' => '2026-01-15T03:48:31.763Z',
'Artists' => [
[
'id' => 'e0dc6000-af34-4071-8a85-dcadace05c36',
'artistName' => 'nedJamez',
'type' => 'primary'
]
],
'Products' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.royalti.io/asset/{id}"
payload := strings.NewReader("{\n \"title\": \"Midnight City\",\n \"mainArtist\": [\n \"M83\",\n \"M47\"\n ],\n \"displayArtist\": \"M83\",\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"otherArtist\": [\n \"Featured Artist\"\n ],\n \"type\": \"Audio\",\n \"version\": \"Album Version\",\n \"isrc\": \"USRC17607839\",\n \"iswc\": \"T-123456789-0\",\n \"lyrics\": \"Waiting in a car...\",\n \"mainGenre\": [\n \"Electronic\",\n \"Synthpop\"\n ],\n \"subGenre\": [\n \"Synthwave\"\n ],\n \"contributors\": {\n \"producers\": [\n \"Producer Name\"\n ],\n \"mixers\": [\n \"Mixer Name\"\n ],\n \"songwriters\": [\n \"Songwriter Name\"\n ]\n },\n \"externalId\": \"EXT-12345\",\n \"extra\": {\n \"notes\": \"Recorded in Abbey Road Studios\"\n },\n \"metadata\": {\n \"releaseYear\": 2011\n },\n \"assetIDs\": [\n \"asset-1\",\n \"asset-2\"\n ],\n \"explicit\": \"clean\",\n \"label\": \"Royalti Records\",\n \"copyright\": \"© 2024 Royalti Records\",\n \"publisher\": \"Royalti Publishing\",\n \"copyrightOwner\": \"Royalti Music Group\",\n \"artists\": [\n {\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"type\": \"primary\"\n },\n \"660e8400-e29b-41d4-a716-446655440001\"\n ],\n \"split\": [\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440002\",\n \"share\": 60\n },\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440003\",\n \"share\": 40\n }\n ],\n \"ddexMetadata\": {\n \"releaseType\": \"Single\",\n \"recordLabel\": \"Royalti Records\"\n },\n \"resourceReference\": \"SR123456789\",\n \"technicalResourceDetails\": {\n \"fileFormat\": \"WAV\",\n \"audioCodec\": \"PCM\",\n \"bitrate\": 1411,\n \"sampleRate\": 44100,\n \"duration\": \"PT3M45S\"\n },\n \"soundRecordingDetails\": {\n \"recordingDate\": \"2024-01-15\",\n \"recordingLocation\": \"Abbey Road Studios\",\n \"language\": \"en\"\n },\n \"musicalWorkReference\": {\n \"workId\": \"work-123\",\n \"iswc\": \"T-123456789-0\"\n },\n \"enableDDEX\": false,\n \"focusTrack\": false,\n \"danceStyle\": [\n \"Electronic Dance\"\n ],\n \"rhythmStyle\": [\n \"Upbeat\"\n ],\n \"instrumentation\": [\n \"Synthesizer\",\n \"Drums\"\n ],\n \"recordingLocation\": \"Abbey Road Studios\",\n \"recordingDate\": \"2024-01-15\",\n \"alternativeTitles\": [\n \"Alt Title 1\",\n \"Alt Title 2\"\n ],\n \"chartPositions\": [\n {\n \"chart\": \"Billboard Hot 100\",\n \"position\": 10,\n \"date\": \"2024-01-01\"\n }\n ],\n \"reviews\": [\n {\n \"reviewer\": \"Music Magazine\",\n \"rating\": 4.5,\n \"text\": \"Great track!\"\n }\n ],\n \"awards\": [\n {\n \"name\": \"Best Electronic Song\",\n \"year\": 2024\n }\n ],\n \"socialMediaHandles\": {\n \"twitter\": \"@artistname\",\n \"instagram\": \"@artistname\"\n },\n \"language\": \"en\",\n \"mood\": [\n \"Energetic\",\n \"Uplifting\"\n ],\n \"tempo\": 128,\n \"key\": \"C Major\",\n \"productionYear\": 2024,\n \"createdAt\": \"2026-01-15T02:52:25.458Z\",\n \"updatedAt\": \"2026-01-15T03:48:31.763Z\",\n \"Artists\": [\n {\n \"id\": \"e0dc6000-af34-4071-8a85-dcadace05c36\",\n \"artistName\": \"nedJamez\",\n \"type\": \"primary\"\n }\n ],\n \"Products\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.royalti.io/asset/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Midnight City\",\n \"mainArtist\": [\n \"M83\",\n \"M47\"\n ],\n \"displayArtist\": \"M83\",\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"otherArtist\": [\n \"Featured Artist\"\n ],\n \"type\": \"Audio\",\n \"version\": \"Album Version\",\n \"isrc\": \"USRC17607839\",\n \"iswc\": \"T-123456789-0\",\n \"lyrics\": \"Waiting in a car...\",\n \"mainGenre\": [\n \"Electronic\",\n \"Synthpop\"\n ],\n \"subGenre\": [\n \"Synthwave\"\n ],\n \"contributors\": {\n \"producers\": [\n \"Producer Name\"\n ],\n \"mixers\": [\n \"Mixer Name\"\n ],\n \"songwriters\": [\n \"Songwriter Name\"\n ]\n },\n \"externalId\": \"EXT-12345\",\n \"extra\": {\n \"notes\": \"Recorded in Abbey Road Studios\"\n },\n \"metadata\": {\n \"releaseYear\": 2011\n },\n \"assetIDs\": [\n \"asset-1\",\n \"asset-2\"\n ],\n \"explicit\": \"clean\",\n \"label\": \"Royalti Records\",\n \"copyright\": \"© 2024 Royalti Records\",\n \"publisher\": \"Royalti Publishing\",\n \"copyrightOwner\": \"Royalti Music Group\",\n \"artists\": [\n {\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"type\": \"primary\"\n },\n \"660e8400-e29b-41d4-a716-446655440001\"\n ],\n \"split\": [\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440002\",\n \"share\": 60\n },\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440003\",\n \"share\": 40\n }\n ],\n \"ddexMetadata\": {\n \"releaseType\": \"Single\",\n \"recordLabel\": \"Royalti Records\"\n },\n \"resourceReference\": \"SR123456789\",\n \"technicalResourceDetails\": {\n \"fileFormat\": \"WAV\",\n \"audioCodec\": \"PCM\",\n \"bitrate\": 1411,\n \"sampleRate\": 44100,\n \"duration\": \"PT3M45S\"\n },\n \"soundRecordingDetails\": {\n \"recordingDate\": \"2024-01-15\",\n \"recordingLocation\": \"Abbey Road Studios\",\n \"language\": \"en\"\n },\n \"musicalWorkReference\": {\n \"workId\": \"work-123\",\n \"iswc\": \"T-123456789-0\"\n },\n \"enableDDEX\": false,\n \"focusTrack\": false,\n \"danceStyle\": [\n \"Electronic Dance\"\n ],\n \"rhythmStyle\": [\n \"Upbeat\"\n ],\n \"instrumentation\": [\n \"Synthesizer\",\n \"Drums\"\n ],\n \"recordingLocation\": \"Abbey Road Studios\",\n \"recordingDate\": \"2024-01-15\",\n \"alternativeTitles\": [\n \"Alt Title 1\",\n \"Alt Title 2\"\n ],\n \"chartPositions\": [\n {\n \"chart\": \"Billboard Hot 100\",\n \"position\": 10,\n \"date\": \"2024-01-01\"\n }\n ],\n \"reviews\": [\n {\n \"reviewer\": \"Music Magazine\",\n \"rating\": 4.5,\n \"text\": \"Great track!\"\n }\n ],\n \"awards\": [\n {\n \"name\": \"Best Electronic Song\",\n \"year\": 2024\n }\n ],\n \"socialMediaHandles\": {\n \"twitter\": \"@artistname\",\n \"instagram\": \"@artistname\"\n },\n \"language\": \"en\",\n \"mood\": [\n \"Energetic\",\n \"Uplifting\"\n ],\n \"tempo\": 128,\n \"key\": \"C Major\",\n \"productionYear\": 2024,\n \"createdAt\": \"2026-01-15T02:52:25.458Z\",\n \"updatedAt\": \"2026-01-15T03:48:31.763Z\",\n \"Artists\": [\n {\n \"id\": \"e0dc6000-af34-4071-8a85-dcadace05c36\",\n \"artistName\": \"nedJamez\",\n \"type\": \"primary\"\n }\n ],\n \"Products\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.royalti.io/asset/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Midnight City\",\n \"mainArtist\": [\n \"M83\",\n \"M47\"\n ],\n \"displayArtist\": \"M83\",\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"otherArtist\": [\n \"Featured Artist\"\n ],\n \"type\": \"Audio\",\n \"version\": \"Album Version\",\n \"isrc\": \"USRC17607839\",\n \"iswc\": \"T-123456789-0\",\n \"lyrics\": \"Waiting in a car...\",\n \"mainGenre\": [\n \"Electronic\",\n \"Synthpop\"\n ],\n \"subGenre\": [\n \"Synthwave\"\n ],\n \"contributors\": {\n \"producers\": [\n \"Producer Name\"\n ],\n \"mixers\": [\n \"Mixer Name\"\n ],\n \"songwriters\": [\n \"Songwriter Name\"\n ]\n },\n \"externalId\": \"EXT-12345\",\n \"extra\": {\n \"notes\": \"Recorded in Abbey Road Studios\"\n },\n \"metadata\": {\n \"releaseYear\": 2011\n },\n \"assetIDs\": [\n \"asset-1\",\n \"asset-2\"\n ],\n \"explicit\": \"clean\",\n \"label\": \"Royalti Records\",\n \"copyright\": \"© 2024 Royalti Records\",\n \"publisher\": \"Royalti Publishing\",\n \"copyrightOwner\": \"Royalti Music Group\",\n \"artists\": [\n {\n \"id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"type\": \"primary\"\n },\n \"660e8400-e29b-41d4-a716-446655440001\"\n ],\n \"split\": [\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440002\",\n \"share\": 60\n },\n {\n \"user\": \"550e8400-e29b-41d4-a716-446655440003\",\n \"share\": 40\n }\n ],\n \"ddexMetadata\": {\n \"releaseType\": \"Single\",\n \"recordLabel\": \"Royalti Records\"\n },\n \"resourceReference\": \"SR123456789\",\n \"technicalResourceDetails\": {\n \"fileFormat\": \"WAV\",\n \"audioCodec\": \"PCM\",\n \"bitrate\": 1411,\n \"sampleRate\": 44100,\n \"duration\": \"PT3M45S\"\n },\n \"soundRecordingDetails\": {\n \"recordingDate\": \"2024-01-15\",\n \"recordingLocation\": \"Abbey Road Studios\",\n \"language\": \"en\"\n },\n \"musicalWorkReference\": {\n \"workId\": \"work-123\",\n \"iswc\": \"T-123456789-0\"\n },\n \"enableDDEX\": false,\n \"focusTrack\": false,\n \"danceStyle\": [\n \"Electronic Dance\"\n ],\n \"rhythmStyle\": [\n \"Upbeat\"\n ],\n \"instrumentation\": [\n \"Synthesizer\",\n \"Drums\"\n ],\n \"recordingLocation\": \"Abbey Road Studios\",\n \"recordingDate\": \"2024-01-15\",\n \"alternativeTitles\": [\n \"Alt Title 1\",\n \"Alt Title 2\"\n ],\n \"chartPositions\": [\n {\n \"chart\": \"Billboard Hot 100\",\n \"position\": 10,\n \"date\": \"2024-01-01\"\n }\n ],\n \"reviews\": [\n {\n \"reviewer\": \"Music Magazine\",\n \"rating\": 4.5,\n \"text\": \"Great track!\"\n }\n ],\n \"awards\": [\n {\n \"name\": \"Best Electronic Song\",\n \"year\": 2024\n }\n ],\n \"socialMediaHandles\": {\n \"twitter\": \"@artistname\",\n \"instagram\": \"@artistname\"\n },\n \"language\": \"en\",\n \"mood\": [\n \"Energetic\",\n \"Uplifting\"\n ],\n \"tempo\": 128,\n \"key\": \"C Major\",\n \"productionYear\": 2024,\n \"createdAt\": \"2026-01-15T02:52:25.458Z\",\n \"updatedAt\": \"2026-01-15T03:48:31.763Z\",\n \"Artists\": [\n {\n \"id\": \"e0dc6000-af34-4071-8a85-dcadace05c36\",\n \"artistName\": \"nedJamez\",\n \"type\": \"primary\"\n }\n ],\n \"Products\": []\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {}
}{
"status": "error",
"message": "Invalid request parameters"
}{
"status": "error",
"message": "Unauthorized"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}{
"status": "error",
"message": "Resource not found"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}Description
Authorization:- Required role:
adminor higher
Code Examples
const response = await fetch('https://api.royalti.io/asset/example-id', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"ref": "#/components/schemas/Asset"
})
});
const data = await response.json();
console.log(data);
import requests
response = requests.put(
'https://api.royalti.io/asset/example-id',
headers={
'Authorization': f'Bearer {token}'
},
json={"ref":"#/components/schemas/Asset"}
)
data = response.json()
print(data)
curl -X PUT https://api.royalti.io/asset/example-id \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ref":"#/components/schemas/Asset"}'
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Asset ID
Body
Title of the asset
"Midnight City"
Main artist name(s) for the asset (display purposes). Note: This is an array of artist NAMES (strings), not UUIDs. For creating artist associations/relationships, use the 'artists' field with UUIDs.
["M83", "M47"]
Display name for the lead artist (single string representation)
510"M83"
Pre-generated UUID (optional, rarely used)
"550e8400-e29b-41d4-a716-446655440000"
Featured artist name(s) in the asset (display purposes). These are artist NAMES (strings), not UUIDs.
["Featured Artist"]
Type of asset
Audio, Video, Ringtone, YouTube "Audio"
Version of the asset (e.g., Remix, Live Version)
"Album Version"
International Standard Recording Code (auto-generated if not provided)
^[A-Z]{2}[A-Z0-9]{3}[0-9]{2}[0-9]{5}$"USRC17607839"
International Standard Musical Work Code
^T-\d{9}-\d$"T-123456789-0"
Lyrics of the asset
"Waiting in a car..."
Main genre(s) of the asset
["Electronic", "Synthpop"]
Sub-genre(s) of the asset
["Synthwave"]
Contributors to the asset (producers, mixers, songwriters, etc.). Accepts two formats:
Object format: { "producers": ["Name1", "Name2"], "songwriters": ["Name3"] }
Array format: [{ "name": "Name1", "role": "producer" }, { "name": "Name2", "role": "songwriter" }]
The array format is automatically transformed to object format internally.
Supported roles: producer, songwriter, composer, lyricist, mixer, engineer, arranger, masteringengineer, remixer (singular or plural forms accepted). Custom roles are also supported.
- object
- object[]
Show child attributes
Show child attributes
{
"producers": ["Producer Name"],
"mixers": ["Mixer Name"],
"songwriters": ["Songwriter Name"]
}
External identifier for the asset
"EXT-12345"
Additional metadata about the asset
{ "notes": "Recorded in Abbey Road Studios" }
General metadata for the asset
{ "releaseYear": 2011 }
Array of individual asset IDs (for album assets)
["asset-1", "asset-2"]
Explicit content flag
explicit, clean "clean"
Record label
"Royalti Records"
Copyright information
"© 2024 Royalti Records"
Publisher name
"Royalti Publishing"
Copyright owner name
"Royalti Music Group"
Artist associations for creating relational links in the database. Note: This field uses artist record UUIDs (not names) to create entries in the ArtistAsset join table. This is separate from 'mainArtist' which stores artist names for display. Can be either:
- Array of UUID strings: ["uuid1", "uuid2"]
- Array of objects with id and type: [{id: "uuid1", type: "primary"}]
Artist UUID (defaults to type 'primary')
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
},
"660e8400-e29b-41d4-a716-446655440001"
]
Revenue split configuration (must total 100%)
Show child attributes
Show child attributes
[
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 60
},
{
"user": "550e8400-e29b-41d4-a716-446655440003",
"share": 40
}
]
DDEX-specific metadata
{
"releaseType": "Single",
"recordLabel": "Royalti Records"
}
DDEX resource reference (auto-generated if DDEX enabled but not provided)
"SR123456789"
Technical details of the resource
Show child attributes
Show child attributes
Sound recording specific details
Show child attributes
Show child attributes
Musical work reference information
Show child attributes
Show child attributes
Enable DDEX for this asset
false
Whether this is a focus track for MEAD
false
Dance style(s) for MEAD
["Electronic Dance"]
Rhythm style(s) for MEAD
["Upbeat"]
Instrumentation for MEAD
["Synthesizer", "Drums"]
Recording location
255"Abbey Road Studios"
Recording date
"2024-01-15"
Alternative titles for the asset
["Alt Title 1", "Alt Title 2"]
Chart positions
[
{
"chart": "Billboard Hot 100",
"position": 10,
"date": "2024-01-01"
}
]
Reviews of the asset
[
{
"reviewer": "Music Magazine",
"rating": 4.5,
"text": "Great track!"
}
]
Awards received
[
{
"name": "Best Electronic Song",
"year": 2024
}
]
Social media handles
Show child attributes
Show child attributes
{
"twitter": "@artistname",
"instagram": "@artistname"
}
Language of the asset
"en"
Mood of the asset
["Energetic", "Uplifting"]
Tempo in BPM
128
Musical key
"C Major"
Year of production
2024
Timestamp when the asset was created
"2026-01-15T02:52:25.458Z"
Timestamp when the asset was last updated
"2026-01-15T03:48:31.763Z"
Associated artists with their relationship type
Show child attributes
Show child attributes
[
{
"id": "e0dc6000-af34-4071-8a85-dcadace05c36",
"artistName": "nedJamez",
"type": "primary"
}
]
Associated products (albums, EPs, singles)
Show child attributes
Show child attributes
[]