Upload Bits for a Package of type bits
POST /v3/packages/:guid/upload
Request
Route
POST /v3/packages/guid-f75db6ea-b09d-48c8-8da7-dd2d0a9cbe3c/upload
Parameters
Name |
Description |
Valid Values |
Example Values |
bits
|
A binary zip file containing the package bits
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
bits_name=application.zip&bits_path=%2Ftmp%2Fd20150616-23220-397i3l%2Fapplication.zip
Headers
cURL
curl "https://api.[your-domain.com]/v3/packages/guid-f75db6ea-b09d-48c8-8da7-dd2d0a9cbe3c/upload" -d 'bits_name=application.zip&bits_path=%2Ftmp%2Fd20150616-23220-397i3l%2Fapplication.zip' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOSIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTR9.AYaS5YtW0voWS79YMbw3kjQC92y1PQaja-UXGrGKcPs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "guid-f75db6ea-b09d-48c8-8da7-dd2d0a9cbe3c",
"type": "bits",
"hash": null,
"url": null,
"state": "PROCESSING_UPLOAD",
"error": null,
"created_at": "2015-06-16T23:40:54Z",
"updated_at": "2015-06-16T23:40:54Z",
"_links": {
"self": {
"href": "/v3/packages/guid-f75db6ea-b09d-48c8-8da7-dd2d0a9cbe3c"
},
"upload": {
"href": "/v3/packages/guid-f75db6ea-b09d-48c8-8da7-dd2d0a9cbe3c/upload",
"method": "POST"
},
"app": {
"href": "/v3/apps/guid-2adc3c51-d49d-4d77-a069-c21f403decfb"
}
}
}
Headers