This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
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"
    ]
  }
}Resends all pending files for a given royalty source for processing.
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"
    ]
  }
}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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"