Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzV9.hS8Rh_RcvU-zTmOBtL4QUUblFiyoo2wzOEoekrZxJ6s
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzV9.hS8Rh_RcvU-zTmOBtL4QUUblFiyoo2wzOEoekrZxJ6s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-ac05c824-4521-43af-83e5-bcb151e28b7d",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-11-13T17:02:55Z",
  "updated_at": "2015-11-13T17:02:55Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2468",
      "stack": "name-2469"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d"
    },
    "space": {
      "href": "/v2/spaces/0ab7b7a3-7601-4bdb-8c5b-d29e9384078f"
    },
    "processes": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-85c09511-b4f9-475f-98d6-fcba8bbf9fe7"
    },
    "droplets": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-ac05c824-4521-43af-83e5-bcb151e28b7d/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.033636
Content-Length: 1454