POST
/
file
/
upload-url
Get File Upload URL
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/upload-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "royaltySource": "<string>",
  "accountingPeriod": "2023-12-25",
  "salePeriod": "2023-12-25",
  "fileMetaData": {
    "uploadType": "royalty",
    "originalname": "<string>",
    "mimetype": "<string>"
  }
}'
{
  "success": true,
  "message": "File upload record created, please utilise the signedUrl to upload the file",
  "data": {
    "signedUrl": "https://storage.googleapis.com/royalti-uploads/..."
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Pre-signed URL generated successfully

The response is of type object.