curl --request DELETE \
--url https://api.royalti.io/artist/{id}/splits/{type} \
--header 'Authorization: Bearer <token>'{
"message": "Successfully deleted 2 split(s) for type: default",
"result": {
"type": "default",
"deletedCount": 2
}
}artist//splits/
curl --request DELETE \
--url https://api.royalti.io/artist/{id}/splits/{type} \
--header 'Authorization: Bearer <token>'{
"message": "Successfully deleted 2 split(s) for type: default",
"result": {
"type": "default",
"deletedCount": 2
}
}DELETE
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the artist. |
| type | string | The type of splits to delete (e.g., ‘default’, ‘mechanical’, etc.) |
const response = await fetch('https://api.royalti.io/artist/example-id/splits/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"