This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
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.
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"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/file/upload-from-drive', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "driveFileId": "sample-driveFileId",
    "fileMetaData": {
      "originalname": "sample-originalname",
      "mimetype": "sample-mimetype"
    }
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"