Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/start

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NCIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.1o9744aWzCPPvdHhvZlwrj6y9T_4BVpPsfWFYnBKbQ0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-12-22T18:28:04Z",
  "updated_at": "2015-12-22T18:28:04Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-570",
      "stack": "name-571"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee"
    },
    "space": {
      "href": "/v2/spaces/db8e69cf-d9db-465a-abc8-2f9227d0daaf"
    },
    "processes": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-9580de96-4f15-4a98-8be6-4c228740b5c2"
    },
    "droplets": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-8537c8ab-ddec-4690-b844-ef78d8c1bcee/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.026149
Content-Length: 1452