Home
Version 3
Apps API

Apps API

Downloads the bits for an App

GET /v2/apps/:guid/download

When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits.

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjF9.QNKJh5vJghMN76EJ2wUxb3Dhwf_b1ylN2MwQJFI_Ja0
Host: example.org
Cookie: 

Route

GET /v2/apps/f4c6d094-669d-4211-bf5f-b380214a1c57/download

cURL

curl "https://api.[your-domain.com]/v2/apps/f4c6d094-669d-4211-bf5f-b380214a1c57/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjF9.QNKJh5vJghMN76EJ2wUxb3Dhwf_b1ylN2MwQJFI_Ja0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/f4/c6/f4c6d094-669d-4211-bf5f-b380214a1c57?AWSAccessKeyId=fake_aws_key_id&Signature=foo&Expires=1416861161
X-VCAP-Request-ID: e466a0ef-3c5e-4111-8769-684dece0b831
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found