Skip to main content
PUT
/
asset
/
{id}
/
artists
Update asset artists
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{id}/artists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "artists": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
{
  "success": true,
  "message": "<string>",
  "data": {}
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/asset/example-id/artists', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "artists": [
      {}
    ]
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Asset ID

Body

application/json
artists
string<uuid>[]

Response

Asset artists updated successfully

success
boolean
Example:

true

message
string
data
object