Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/stop

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OSIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5ODB9.maIh2_ObaVEmwXTFHqZ39uSTkUjK9kM4qMuZgkGbXbs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-83a31d3c-113f-46c2-824a-28abb93eb0b0",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2016-01-13T17:29:39Z",
  "updated_at": "2016-01-13T17:29:40Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-582",
      "stack": "name-583"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0"
    },
    "space": {
      "href": "/v2/spaces/59338f5f-90cb-4b35-a3f1-f7b71758c065"
    },
    "processes": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-a9c78ea0-1a1e-4aa5-abd1-6a94fdac2b40"
    },
    "droplets": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-83a31d3c-113f-46c2-824a-28abb93eb0b0/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.020992
Content-Length: 1452