Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OSIsImVtYWlsIjoiZW1haWwtMTIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDB9.6vhEjdi7ffEEYKshqAYkhrHDFNI31BO1qpQ_nWcencY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/start" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-feca9e67-b34d-4653-9905-1c3a11934c78",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-04-15T00:55:40Z",
  "updated_at": "2015-04-15T00:55:40Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78"
    },
    "processes": {
      "href": "/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/packages"
    },
    "space": {
      "href": "/v2/spaces/5585e62f-b6cc-49cf-8ca7-24eec3acb79a"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-f022267c-96c6-4b00-8fe1-0cd46a9d2df3"
    },
    "start": {
      "href": "/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-feca9e67-b34d-4653-9905-1c3a11934c78/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e7d1b9a5-c9f6-44b8-bb44-ef78c8218067
Content-Length: 1139
X-Content-Type-Options: nosniff