curl --request POST \
--url https://api.royalti.io/file/confirm-upload-completion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fileId": "file-uuid-123",
"fileName": "spotify_royalties_2024-01.csv",
"uploadStatus": "completed"
}
'Confirms that a file upload has completed successfully and triggers processing.
curl --request POST \
--url https://api.royalti.io/file/confirm-upload-completion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fileId": "file-uuid-123",
"fileName": "spotify_royalties_2024-01.csv",
"uploadStatus": "completed"
}
'const response = await fetch('https://api.royalti.io/file/confirm-upload-completion', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"fileId": "sample-fileId",
"fileName": "sample-fileName",
"uploadStatus": "sample-uploadStatus"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"