Skip to main content
PUT
/
publishing-bootstrap
/
items
/
{id}
curl --request PUT \
  --url https://api.royalti.io/publishing-bootstrap/items/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "finalData": {
    "resolveConflict": "link",
    "targetId": "3f8a1b2c-4d5e-6f70-8192-a3b4c5d6e7f8"
  }
}
'
{
  "status": "success",
  "message": "Publishing import item updated",
  "data": {
    "item": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "TenantId": 123,
      "batchId": "<string>",
      "type": "work",
      "matchKey": "iswc:T0345246801",
      "payload": {},
      "finalData": {},
      "targetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "importError": "<string>",
      "reviewedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "reviewedAt": "2023-11-07T05:31:56Z",
      "enrichmentSource": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  }
}
{
"status": "error",
"message": "<string>"
}
{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}
{
"status": "error",
"message": "<string>"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

PUT /publishing-bootstrap/items/ Description: Records reviewer overrides on a PENDING staged item. finalData keys are strictly allowlisted (workTitle, iswc, languageCode, musicalWorkDistributionCategory, workType, duration, writers, resolveConflict, targetId) — any other key is rejected with 400. Ownership fields are NOT accepted. Share, territory, publisher, and agreement data (relativeShare, territories, prShare/mrShare/srShare, controlled, publisher/agreement references, and the like) are outside the vocabulary by design: the bootstrap is share-free end to end, and ownership is entered by a human after import through the regular publishing endpoints. finalData.writers, when present, REPLACES the proposal’s writer list entirely; each entry accepts only firstName, lastName, writerRole, ipiNameNumber, mbArtistId. targetId is only allowed together with resolveConflict: "link" and must reference a work in the caller’s workspace. Authorization:
  • Required role: admin or higher
Method: PUT

Code Examples

const response = await fetch('https://api.royalti.io/publishing-bootstrap/items/example-id', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ref": "#/components/schemas/PublishingItemUpdateRequest"
  })
});

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

response = requests.put(
  'https://api.royalti.io/publishing-bootstrap/items/example-id',
  headers={
    'Authorization': f'Bearer {token}'
  },
  json={"ref":"#/components/schemas/PublishingItemUpdateRequest"}
)

data = response.json()
print(data)
curl -X PUT https://api.royalti.io/publishing-bootstrap/items/example-id \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ref":"#/components/schemas/PublishingItemUpdateRequest"}'

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Staged item id (itemId in the diff)

Body

application/json
finalData
object
required

Reviewer overrides, merged over any previous overrides. Keys are strictly ALLOWLISTED to the properties below — any other key is rejected with 400. Share, territory, publisher, and agreement fields are NOT accepted (e.g. relativeShare, territories, prShare/mrShare/srShare, controlled, publisherId): they are not in the vocabulary, so ownership data is structurally impossible to stage. writers entries are equally metadata-only.

Response

Item updated

status
string
Example:

"success"

message
string
Example:

"Publishing import item updated"

data
object