Skip to main content
POST
/
file
/
upload-from-drive
Upload File from Google Drive
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/upload-from-drive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "driveFileId": "drive-file-id-123",
  "fileMetaData": {
    "originalname": "royalty.csv",
    "mimetype": "text/csv"
  }
}'
{
  "success": true,
  "message": "File uploaded from Google Drive",
  "data": {
    "id": "file-uuid-123",
    "status": "pending",
    "name": "royalty.csv"
  }
}
Uploads a file from Google Drive to storage for royalty processing.

Authentication

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

Request Body

Request Schema

FieldTypeRequiredDescription
driveFileIdstringāœ…
fileMetaDataobjectāœ…

Responses

āœ… 200 - File uploaded from Google Drive

āš ļø 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
driveFileId
string
required
fileMetaData
object
required

Response

File uploaded from Google Drive

success
boolean
default:true
message
string
data
object
⌘I