Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/start" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjF9.nH3fxDWLMwzaw96ZOjrVwWRve6QUlwVDhLW10ZJjc_Q" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-05-15T16:53:41Z",
  "updated_at": "2015-05-15T16:53:41Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690"
    },
    "processes": {
      "href": "/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/packages"
    },
    "space": {
      "href": "/v2/spaces/9bd46fcd-63e5-421f-a0f6-d9b871ae252b"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-601bafc4-efea-4783-a9cc-1d406d71fe4f"
    },
    "start": {
      "href": "/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-bfa78512-4fee-4fd8-8dcb-e72acf5ba690/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5f014f76-35a1-4afa-b060-15f8b04d10dd
Content-Length: 1139
X-Content-Type-Options: nosniff