Skip to main content
POST
/
dmp
/
import
/
retry-record
Retry a single failed record from a prior import
curl --request POST \
  --url https://api.royalti.io/dmp/import/retry-record \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "importJobId": "session-2026-07-14-01",
  "recordIndex": 42,
  "record": {
    "code": "W-000042",
    "work_title": "Midnight Run"
  },
  "overrides": {
    "work_title": "Midnight Run (Radio Edit)"
  }
}
'
import requests

url = "https://api.royalti.io/dmp/import/retry-record"

payload = {
"importJobId": "session-2026-07-14-01",
"recordIndex": 42,
"record": {
"code": "W-000042",
"work_title": "Midnight Run"
},
"overrides": { "work_title": "Midnight Run (Radio Edit)" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
importJobId: 'session-2026-07-14-01',
recordIndex: 42,
record: {code: 'W-000042', work_title: 'Midnight Run'},
overrides: {work_title: 'Midnight Run (Radio Edit)'}
})
};

fetch('https://api.royalti.io/dmp/import/retry-record', 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/dmp/import/retry-record",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'importJobId' => 'session-2026-07-14-01',
'recordIndex' => 42,
'record' => [
'code' => 'W-000042',
'work_title' => 'Midnight Run'
],
'overrides' => [
'work_title' => 'Midnight Run (Radio Edit)'
]
]),
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/dmp/import/retry-record"

payload := strings.NewReader("{\n \"importJobId\": \"session-2026-07-14-01\",\n \"recordIndex\": 42,\n \"record\": {\n \"code\": \"W-000042\",\n \"work_title\": \"Midnight Run\"\n },\n \"overrides\": {\n \"work_title\": \"Midnight Run (Radio Edit)\"\n }\n}")

req, _ := http.NewRequest("POST", 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.post("https://api.royalti.io/dmp/import/retry-record")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"importJobId\": \"session-2026-07-14-01\",\n \"recordIndex\": 42,\n \"record\": {\n \"code\": \"W-000042\",\n \"work_title\": \"Midnight Run\"\n },\n \"overrides\": {\n \"work_title\": \"Midnight Run (Radio Edit)\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.royalti.io/dmp/import/retry-record")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"importJobId\": \"session-2026-07-14-01\",\n \"recordIndex\": 42,\n \"record\": {\n \"code\": \"W-000042\",\n \"work_title\": \"Midnight Run\"\n },\n \"overrides\": {\n \"work_title\": \"Midnight Run (Radio Edit)\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "recordIndex": 123,
  "error": "<string>",
  "createdEntityIds": {
    "workIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "writerIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "artistIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "assetIds": [
      "<string>"
    ]
  }
}
{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /dmp/import/retry-record Description: Re-runs the full import phase pipeline (writers → … → acknowledgements) for exactly one work record, in its own transaction — commits only if every phase produces zero errors, otherwise rolls back and returns status: failed. Intended for re-processing a record that errored during a prior /dmp/import/execute call, optionally with overrides shallow-merged onto the original record to fix the field that caused the failure. importJobId is a client-generated session id scoping a batch of retries. Idempotency: a retry of the same (tenantId, importJobId, recordIndex) within a 1-hour window replays the cached response instead of re-processing — this is separate from (and in addition to) the standard Idempotency-Key header support also wired on this route. Authorization:
  • Required role: user or higher
  • Requires an active publisher addon
Method: POST

Code Examples

const response = await fetch('https://api.royalti.io/dmp/import/retry-record', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "importJobId": "sample-importJobId",
    "recordIndex": 1,
    "record": {},
    "overrides": {},
    "ackRows": [
      {}
    ]
  })
});

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

response = requests.post(
  'https://api.royalti.io/dmp/import/retry-record',
  headers={
    'Authorization': f'Bearer {token}'
  },
  json={"importJobId":"sample-importJobId","recordIndex":1,"record":{},"overrides":{},"ackRows":[{}]}
)

data = response.json()
print(data)
curl -X POST https://api.royalti.io/dmp/import/retry-record \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"importJobId":"sample-importJobId","recordIndex":1,"record":{},"overrides":{},"ackRows":[{}]}'

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Body

application/json
importJobId
string
required

Client-generated id identifying the originating import batch.

recordIndex
integer
required

0-based index of this record in the original works[] array.

Required range: x >= 0
record
object
required

The single DMP work record to re-process (same shape as one entry in the original worksFile's works[]). Must include at minimum code and work_title.

overrides
object | null

Optional field-level corrections, shallow-merged onto record before reprocessing.

ackRows
object[] | null

Optional acknowledgement CSV rows for this record (usually empty on retry).

Response

Record reprocessed (check status — a 200 is returned for both success and failed outcomes)

status
enum<string>
Available options:
success,
failed
recordIndex
integer

Echoes the request's recordIndex.

error
string

Present only when status is failed — concatenated per-phase error messages.

createdEntityIds
object

Present only when status is success.