Skip to content

Request File Upload URL

Request

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. PUT the 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
Bodyapplication/jsonrequired
idstringrequired

Cloud phone ID

fileNamestringrequired

Upload file name

POST
/cloudphone/uploadUrl
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"
  }'

Responses

Success. data is an object with the fields presignedUrl.

Headers
any
Bodyapplication/json
codeintegerrequired

Return result code 0:Normal Other codes are exceptions.

msgstring or nullrequired

error message

dataobjectrequired
requestIdstringrequired
Response
{ "code": 0, "msg": null, "data": { "presignedUrl": "https://example.com/resource" }, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }