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/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"
}'{
  "success": true,
  "message": "Upload confirmed and auto-processing started successfully",
  "data": {
    "fileId": "file-uuid-123",
    "status": "processing",
    "uploadedAt": "2024-01-15T10:30:00.000Z",
    "autoProcessed": true,
    "requiresConfirmation": false,
    "detectionSessionId": "session-uuid-456",
    "jobId": "job-789",
    "queueName": "royalty-excel-processing",
    "estimatedCompletionTime": "2024-01-15T10:35:00.000Z"
  }
}Confirms that a file upload has completed successfully and triggers processing.
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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"
}'{
  "success": true,
  "message": "Upload confirmed and auto-processing started successfully",
  "data": {
    "fileId": "file-uuid-123",
    "status": "processing",
    "uploadedAt": "2024-01-15T10:30:00.000Z",
    "autoProcessed": true,
    "requiresConfirmation": false,
    "detectionSessionId": "session-uuid-456",
    "jobId": "job-789",
    "queueName": "royalty-excel-processing",
    "estimatedCompletionTime": "2024-01-15T10:35:00.000Z"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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}"