Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/stop

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0OTUzMTUxN30.sbyzfcjE7JLOigpLIOxMNEKL4VIJbNtLJK_Z_tnRme0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-00613435-868f-4416-848d-5308b4a9fa82",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2015-11-30T23:38:36Z",
  "updated_at": "2015-11-30T23:38:37Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-605",
      "stack": "name-606"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82"
    },
    "space": {
      "href": "/v2/spaces/15af23f8-3684-4cb0-b4e4-beba1a3d148a"
    },
    "processes": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-6cc3c78a-f7db-44a4-bff5-157ea0a55b38"
    },
    "droplets": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-00613435-868f-4416-848d-5308b4a9fa82/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.029571
Content-Length: 1452