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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzV9.iG3oOMEA6ds6re70kVM8L9XKEnyLMwV011LUqAsiIl8
Host: example.org
Cookie: 

Route

GET /v2/apps/66d7ca24-420b-4d8b-b480-c5c2d702c386/download

cURL

curl "https://api.[your-domain.com]/v2/apps/66d7ca24-420b-4d8b-b480-c5c2d702c386/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzV9.iG3oOMEA6ds6re70kVM8L9XKEnyLMwV011LUqAsiIl8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/66/d7/66d7ca24-420b-4d8b-b480-c5c2d702c386?X-Amz-Expires=3600&X-Amz-Date=20150212T014215Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150212/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=806342376c497b80a7598960d8284301b204d047c6bca57536972a306deb508f
X-VCAP-Request-ID: 97db704d-f2f1-4c1f-aa67-ccdb92e96160
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found