Skip to main content
POST
/
file
/
resend-pending-files
Resend Pending Files
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/resend-pending-files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "royaltySourceId": "source-uuid-123"
}'
{
  "success": true,
  "message": "Pending files have been resent for processing",
  "analytics": {
    "totalPendingFiles": 3,
    "eligibleFilesForProcessing": 2,
    "processedFilesCount": 2,
    "failedFilesCount": 1,
    "failedFiles": [
      "Error processing file file-uuid-456"
    ]
  }
}
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/file/resend-pending-files', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "royaltySourceId": "sample-royaltySourceId"
  })
});

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

Authorizations

Authorization
string
header
required

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

Body

application/json
royaltySourceId
string
required

Response

Pending files resent for processing

success
boolean
default:true
message
string
analytics
object