Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MiIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjR9.u77hMGo3Lo_gJypeZRbFR0IQQ3hn-qyNqxi7Wv3fs9M
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/start" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-06-16T23:41:04Z",
  "updated_at": "2015-06-16T23:41:04Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c"
    },
    "processes": {
      "href": "/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/packages"
    },
    "space": {
      "href": "/v2/spaces/350feaac-d1bf-42b3-8a10-cea1039f2df3"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-4cb3bfa9-60e2-4a93-9661-98cecbf1c62a"
    },
    "start": {
      "href": "/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-c0e2b932-7eb7-4b0c-8f1c-769b288be38c/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 31a9fcd1-34c3-4490-a3c0-2142e4fadfd2
Content-Length: 1139
X-Content-Type-Options: nosniff