POST Upload Method

A file can be uploaded using a multipart post. The response will be an upload_id, which can be submitted when creating or updating a managed application to set the iOS app file, iOS app profile, or Android app file.

Syntax:

POST /api/upload

Curl

$> curl 'http://localhost:8080/api/upload’ -H 'Authorization: Basic YWRtaW46YWRtaW4=' -F file=@/Users/testplant/Documents/app.apk

Raw Request

POST /api/upload HTTP/1.1

Host: localhost:8080

Authorization: Basic YWRtaW46YWRtaW4=

Content-Length: 10237

Expect: 100-continue

Content-Type: multipart/form-data; boundary=------------------------974fc44a6249699a

 

--------------------------974fc44a6249699a

Content-Disposition: form-data; name="file"; filename="app.apk"

Content-Type: application/octet-stream

 

< binary data omitted >

--------------------------974fc44a6249699a--

Response Body

{

"upload_id":"5908d5144445534540570000"

}

 

This topic was last updated on 2月 01, 2019, at 11:13:23 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant