Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMSIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDZ9._ODSC-fiofq_Y01acAsm1BqJgdcpODaiFT2yWv2vKVg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMSIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDZ9._ODSC-fiofq_Y01acAsm1BqJgdcpODaiFT2yWv2vKVg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-10-13T17:31:46Z",
  "updated_at": "2015-10-13T17:31:46Z",
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400"
    },
    "space": {
      "href": "/v2/spaces/25d7e0d6-0e44-42e1-833c-e759d38ddf14"
    },
    "processes": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-8e9970ac-2ba1-4549-8a68-ad93a9adf5b3"
    },
    "droplets": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-b1407650-4bb6-4bc8-87ec-4fba36d8c400/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 38737411-8128-4680-aeeb-9e416a7ddf2a
Content-Length: 1349
X-Content-Type-Options: nosniff