Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5Mzl9.E3C-zFYPfOoUDJX2BOuyCzP61-PF_Y7L8B4jOwp2f7E
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5Mzl9.E3C-zFYPfOoUDJX2BOuyCzP61-PF_Y7L8B4jOwp2f7E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-03736f68-3641-4fac-983c-e16d0206ddb8",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-10-07T00:35:39Z",
  "updated_at": "2015-10-07T00:35:39Z",
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8"
    },
    "space": {
      "href": "/v2/spaces/6ac39a5e-746b-47f8-98e7-4e7682aee420"
    },
    "processes": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-f6c0b951-6eb7-4af7-ad81-424b5f240335"
    },
    "droplets": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-03736f68-3641-4fac-983c-e16d0206ddb8/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8765303a-fc5d-4d25-8b52-43fa6c3a1b29
Content-Length: 1349
X-Content-Type-Options: nosniff