Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115/stop

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115/stop" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115",
  "name": "original_name",
  "desired_state": "STOPPED",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115"
    },
    "processes": {
      "href": "/v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115/packages"
    },
    "space": {
      "href": "/v2/spaces/f1ffcf4c-e8a4-4287-91ae-eb384b98b03c"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-da490d8b-1860-4d9d-b06c-599932aee746"
    },
    "start": {
      "href": "/v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-47a0dfd6-cdf1-4c34-a02e-4062423f5115/stop",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9281b60d-fa74-4560-bfb5-dedf1e0e73e0
Content-Length: 882
X-Content-Type-Options: nosniff