Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTF9.hwF1UMC_07cfS_g542G3VDvcwYECRETi8flTAKxil1Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/start" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-06-04T00:05:11Z",
  "updated_at": "2015-06-04T00:05:11Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c"
    },
    "processes": {
      "href": "/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/packages"
    },
    "space": {
      "href": "/v2/spaces/be054850-b6f7-47ba-8a35-9df29369d53e"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-b5904137-a3fc-42be-b960-15b302c692ca"
    },
    "start": {
      "href": "/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-98dfff45-bcbb-4e2f-b1d8-716570fe861c/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7db0a42a-f9b8-49b8-a0c2-05b2de7caeb5
Content-Length: 1139
X-Content-Type-Options: nosniff