Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-0ca52e1b-c653-492f-b47e-8dbc83dd11c6/stop

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-0ca52e1b-c653-492f-b47e-8dbc83dd11c6/stop" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtNzZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2MH0._Q62_UOiLSDs7QGzPI1o0XSRwHHSgHEj0pplQO3O9eE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-0ca52e1b-c653-492f-b47e-8dbc83dd11c6",
  "name": "original_name",
  "desired_state": "STOPPED",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-0ca52e1b-c653-492f-b47e-8dbc83dd11c6"
    },
    "processes": {
      "href": "/v3/apps/guid-0ca52e1b-c653-492f-b47e-8dbc83dd11c6/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-0ca52e1b-c653-492f-b47e-8dbc83dd11c6/packages"
    },
    "space": {
      "href": "/v2/spaces/e27af069-f57e-458d-811e-b559723a32b7"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-9ede61d9-1e35-44db-b67d-69bb20cb28f4"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d6602b0c-77a4-469b-a689-ae7477e64646
Content-Length: 613
X-Content-Type-Options: nosniff