Uploads a file from Google Drive to storage for royalty processing.
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"
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
File uploaded from Google Drive
The response is of type object
.
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"
}
}