Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/start

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NiIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTR9.qgLzpEAxrxeKFwuzfI20bHfuSrLOTKv7lzXOI4JTWfM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-70f7f733-12bf-44a6-ace3-2e04411fdf70",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-10-15T23:52:34Z",
  "updated_at": "2015-10-15T23:52:34Z",
  "lifecycle": null,
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70"
    },
    "space": {
      "href": "/v2/spaces/18843419-2c44-4203-9015-e541a7d585f1"
    },
    "processes": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-efd3e180-3a66-499b-b532-83f4a7be6f7d"
    },
    "droplets": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-70f7f733-12bf-44a6-ace3-2e04411fdf70/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 035fc082-ac48-494e-8541-b135a792a026
Content-Length: 1349
X-Content-Type-Options: nosniff