curl --request POST \
--url https://api.idol.io/api/v2/rights \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "rights",
"id": "id",
"attributes": {
"action": "add",
"comments": {},
"created-by": "test@example.com",
"created-at": "2024-08-25T15:00:00Z",
"updated-at": "2024-08-25T15:00:00Z"
},
"relationships": {
"distributor": {
"data": {
"type": "type",
"id": "id"
},
"links": {
"self": "https://www.example.com/path/to/resource",
"related": "https://www.example.com/path/to/resource"
}
},
"distributed": {
"data": {
"type": "type",
"id": "id"
},
"links": {
"self": "https://www.example.com/path/to/resource",
"related": "https://www.example.com/path/to/resource"
}
},
"dsps": {
"data": [
{
"type": "type",
"id": "id"
}
],
"links": {
"self": "https://www.example.com/path/to/resource",
"related": "https://www.example.com/path/to/resource"
},
"meta": {}
},
"territories": {
"data": [
{
"type": "type",
"id": "id"
}
],
"links": {
"self": "https://www.example.com/path/to/resource",
"related": "https://www.example.com/path/to/resource"
},
"meta": {}
}
},
"links": {
"self": "https://www.example.com/path/to/resource"
}
}
}
'