Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.Mx10_PXxir_Y0QTpjuiT5OE8OwWYasRY-hwBL3Yj6KQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.Mx10_PXxir_Y0QTpjuiT5OE8OwWYasRY-hwBL3Yj6KQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-36fe204b-95e0-4f74-968a-d41d224a8e9c",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2016-01-13T17:29:39Z",
  "updated_at": "2016-01-13T17:29:39Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-568",
      "stack": "name-569"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c"
    },
    "space": {
      "href": "/v2/spaces/8c881e01-c979-4ef2-a5d4-edeea048ab0a"
    },
    "processes": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-ec21472d-1ca3-47f4-885f-7480f70dda3b"
    },
    "droplets": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-36fe204b-95e0-4f74-968a-d41d224a8e9c/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.029989
Content-Length: 1452