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.

Request

Route

GET /v2/apps/e9f2178a-9f4e-47ee-b2b4-5a55d5eea3aa/download

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwM30.WPQex4I2bvaGEx2QimvYioWL_J4WSoFMPPShPjZnj1M
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/e9f2178a-9f4e-47ee-b2b4-5a55d5eea3aa/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwM30.WPQex4I2bvaGEx2QimvYioWL_J4WSoFMPPShPjZnj1M" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

302 Found

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/e9/f2/e9f2178a-9f4e-47ee-b2b4-5a55d5eea3aa?X-Amz-Expires=3600&X-Amz-Date=20150407T191143Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150407/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7ab442186b0a7c12a2e2f08ea3ec5d411962bad2c2f966242e85fc6ff25bcd84
X-VCAP-Request-ID: e788be1c-cc8a-484e-8e3d-4bee873c28a7
Content-Length: 0
X-Content-Type-Options: nosniff