Skip to main content
POST
/
open
/
api
/
phone
/
completeAndPush
Complete and push
curl --request POST \
  --url https://user.pmock.com/api/open/api/phone/completeAndPush \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneId": 123,
  "pushDestDir": "<string>",
  "uploadId": "<string>",
  "fileName": "<string>",
  "fileSize": 123,
  "liveImageUrl": "<string>",
  "uploadType": 123,
  "mergeList": [
    {
      "etag": "<string>",
      "partNumber": 1
    }
  ]
}
'
{
  "traceId": "",
  "code": 0,
  "msg": "",
  "data": {
    "phoneId": 0,
    "envFileId": 0,
    "taskId": 0
  },
  "status": ""
}

Body

application/json
phoneId
integer<int64>
required

Phone ID,obtain through Get phone list api

pushDestDir
string

Target directory for pushing files (default: /sdcard/Download for non-images, /sdcard/DCIM for images)

uploadId
string

Upload Id for fragmented upload,The Upload Id obtained through the Initialize upload task

fileName
string

File name,File name,The file name of the uploaded file

fileSize
integer<int64>

File size,The total file size is supported

liveImageUrl
string

The path of the live file image is used for display

uploadType
integer

File upload type: 1-Regular file, 2-Live stream file(default: 1-Regular file )

mergeList
object[]

List of file chunks to merge

Response

200 - application/json
traceId
string
required

Request link ID

code
integer
required

code

msg
string
required

Request return message

status
string
default:finish
required

Status, representing whether this is an instant completion or waiting state, finish or pending

data
object

Request return data