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"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

File uploaded from Google Drive

The response is of type object.