Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/stop

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.JKy8vhDZ7Hn--AscgeKpuGeBU9dT4Ep4moOUQf8qsgc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.JKy8vhDZ7Hn--AscgeKpuGeBU9dT4Ep4moOUQf8qsgc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-07-27T22:43:15Z",
  "updated_at": "2015-07-27T22:43:15Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0"
    },
    "processes": {
      "href": "/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/packages"
    },
    "space": {
      "href": "/v2/spaces/7550ea49-3bce-4655-b44c-30b5ca622402"
    },
    "droplet": {
      "href": "/v3/droplets/guid-978d2287-36ff-4074-bbdf-b613b8211397"
    },
    "start": {
      "href": "/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-be4e4357-5a9d-48fc-ae37-821f48c1ace0/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 66f93a7e-9297-4954-9162-b60e2a0578d3
Content-Length: 1152
X-Content-Type-Options: nosniff