Upload Bits for a Package of type bits
POST /v3/packages/:guid/upload
Request
Route
POST /v3/packages/guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9/upload
Parameters
Name |
Description |
Valid Values |
Example Values |
bits
|
A binary zip file containing the package bits
|
|
|
bits_name=application.zip&bits_path=%2Ftmp%2Fd20151130-23123-t7nxsu%2Fapplication.zip
Headers
cURL
curl "https://api.[your-domain.com]/v3/packages/guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9/upload" -d 'bits_name=application.zip&bits_path=%2Ftmp%2Fd20151130-23123-t7nxsu%2Fapplication.zip' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNCIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1MjN9.zwMt5w4APwV0Up3lbOMKYUN7Ppcisud-IHR1gRiFyV0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9",
"type": "bits",
"data": {
"hash": {
"type": "sha1",
"value": null
},
"error": null
},
"state": "PROCESSING_UPLOAD",
"created_at": "2015-11-30T23:38:43Z",
"updated_at": "2015-11-30T23:38:43Z",
"links": {
"self": {
"href": "/v3/packages/guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9"
},
"upload": {
"href": "/v3/packages/guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9/upload",
"method": "POST"
},
"download": {
"href": "/v3/packages/guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9/download",
"method": "GET"
},
"stage": {
"href": "/v3/packages/guid-6ab9df97-ebd2-416f-b1e3-1685fdabf5a9/droplets",
"method": "POST"
},
"app": {
"href": "/v3/apps/guid-7573f57e-2368-4169-8c8a-d07ccb2469c2"
}
}
}
Headers