Skip to main content
POST
/
file
/
getuUloadurl
Get File Upload URL (Legacy)
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/getuUloadurl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "royaltySource": "testsource",
  "accountingPeriod": "2017-05-01",
  "salePeriod": "2017-01-01",
  "fileMetaData": {
    "uploadType": "royalty",
    "originalname": "export.csv",
    "mimetype": "csv"
  }
}'
{
  "signedUrl": "https://storage.googleapis.com/royalti-uploads/royalty/file-uuid-123?signature=..."
}
Generates a pre-signed URL for uploading a royalty file.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
royaltySourcestring
accountingPeriodstring
salePeriodstring
fileMetaDataobject

Responses

✅ 200 - Signed upload URL generated.

⚠️ 400 - undefined

⚠️ 401 - undefined

❌ 500 - undefined

Tags

File

Authorizations

Authorization
string
header
required

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

Body

application/json
royaltySource
string
required
accountingPeriod
string<date>
required
salePeriod
string<date>
required
fileMetaData
object
required

Response

Signed upload URL generated.

signedUrl
string<uri>
I