Request a pre-signed URL for uploading a file that a Cloud Phone will receive.
- Preconditions: the phone must be powered on and not held by another member.
- Effect: none is persisted — the URL is generated on the fly.
- Completion: synchronous. The pre-signed URL is valid for one hour.
PUTthe file content to it, then register the upload with the upload endpoint; registering before the object exists is rejected. - Note: uploading the same file name again overwrites the previous object. Temporary objects are removed automatically after 7 days.
Security
Authorization
POST
curl -i -X POST \
https://api.morelogin.com/cloudphone/uploadUrl \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fileName": "live-video.mp4",
"id": "1661515884160372"
}'Response
{ "code": 0, "msg": null, "data": { "presignedUrl": "https://example.com/resource" }, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }