Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMyIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzV9.1utXg8yPaCJPpGZ2wlApzv1OIsAZB1vqKVzQZxLzD7I
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMyIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzV9.1utXg8yPaCJPpGZ2wlApzv1OIsAZB1vqKVzQZxLzD7I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2016-01-26T22:20:35Z",
  "updated_at": "2016-01-26T22:20:35Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2438",
      "stack": "name-2439"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0"
    },
    "space": {
      "href": "/v2/spaces/a3585834-1d6e-41ad-8b25-2ca17a3e5dca"
    },
    "processes": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-352f8e31-2ef0-412b-90f1-3404cd8e929d"
    },
    "droplets": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-76956e3e-9905-42f9-b2c1-f9b53ef24ac0/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.035326
Content-Length: 1454