Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODI0fQ.Eeq1-r95t3nmqwAiIuCmdowTr6kwGudG_SUeRMLslEA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODI0fQ.Eeq1-r95t3nmqwAiIuCmdowTr6kwGudG_SUeRMLslEA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-11-03T00:53:44Z",
  "updated_at": "2015-11-03T00:53:44Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-79",
      "stack": "name-80"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0"
    },
    "space": {
      "href": "/v2/spaces/0fdf5639-d654-4a98-8840-3f1ba3451883"
    },
    "processes": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-46d2b348-7c22-438e-945c-4f533db9c449"
    },
    "droplets": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-1a1fe753-7560-40e9-b272-5d2fe3db4ba0/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b938f7b6-5960-45dc-a69c-622044f92fa9
Content-Length: 1450
X-Content-Type-Options: nosniff