Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNCIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0OTUzMTUxN30.nYEcF2Y89lH21eLl5tiuTxqdBNC9IA_n8V56SvhyxyY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNCIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0OTUzMTUxN30.nYEcF2Y89lH21eLl5tiuTxqdBNC9IA_n8V56SvhyxyY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-96829c99-a78b-4f78-b922-f0b34c88a667",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-11-30T23:38:37Z",
  "updated_at": "2015-11-30T23:38:37Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-631",
      "stack": "name-632"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667"
    },
    "space": {
      "href": "/v2/spaces/72e3c31f-5d15-422e-9c62-ad66a1c26b3e"
    },
    "processes": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-857bd353-08ae-4356-937f-4c1e38d7c7a8"
    },
    "droplets": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-96829c99-a78b-4f78-b922-f0b34c88a667/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.032701
Content-Length: 1452