Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/start

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODN9.qW6OfLeuVqoLc7l9eT1Qq8cOXtPlyWzXIsojTGf0Q6I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-9b8066a6-4044-451f-be52-7362fdd177fa",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2016-01-19T19:41:23Z",
  "updated_at": "2016-01-19T19:41:23Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2408",
      "stack": "name-2409"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa"
    },
    "space": {
      "href": "/v2/spaces/c72440f2-6aa2-4fe7-8032-5698e52e540a"
    },
    "processes": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-f2a33dc6-34a0-46a3-935e-1c3778fd5a74"
    },
    "droplets": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-9b8066a6-4044-451f-be52-7362fdd177fa/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.032249
Content-Length: 1454