Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MyIsImVtYWlsIjoiZW1haWwtMzMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.E6CgwxCkTnWCJhQaMtLeE-tev6xlu1pD3gQnIqkvuHA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MyIsImVtYWlsIjoiZW1haWwtMzMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.E6CgwxCkTnWCJhQaMtLeE-tev6xlu1pD3gQnIqkvuHA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-ba4962fd-3fde-45a8-991a-38516ea49fa2",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-09-11T18:39:14Z",
  "updated_at": "2015-09-11T18:39:14Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2"
    },
    "space": {
      "href": "/v2/spaces/6f725417-4fa2-49a4-9028-6dd065946ac4"
    },
    "processes": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-21a31c40-efa3-4cde-9592-8dec35719fd7"
    },
    "droplets": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-ba4962fd-3fde-45a8-991a-38516ea49fa2/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fb6e255a-a23a-4136-b2e2-df9189cfa59b
Content-Length: 1350
X-Content-Type-Options: nosniff