Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTR9.1bFuahzn3jD-kkDM_a-8VZz_sGnkSx9gc6cjUNEU1Y0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41/start" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTR9.1bFuahzn3jD-kkDM_a-8VZz_sGnkSx9gc6cjUNEU1Y0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-c55a099f-59de-4270-9977-6d97e5ed3f41",
  "name": "original_name",
  "desired_state": "STARTED",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41"
    },
    "processes": {
      "href": "/v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41/packages"
    },
    "space": {
      "href": "/v2/spaces/66995d62-5d6a-48b1-89fc-9dba6c351456"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-f8c3bcd2-b414-4fee-bad3-6b469ebc79c9"
    },
    "start": {
      "href": "/v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-c55a099f-59de-4270-9977-6d97e5ed3f41/stop",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 51874d96-cf63-4cad-808f-275b206e23f8
Content-Length: 882
X-Content-Type-Options: nosniff