Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/stop

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzR9.aEVbEHtxTjM7fakw9iYJCVm_3lKk6WADA1yuo4YdR_I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-11e8e36d-71f5-4be8-9487-c6d1a187e439",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2016-01-26T22:20:34Z",
  "updated_at": "2016-01-26T22:20:34Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2406",
      "stack": "name-2407"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439"
    },
    "space": {
      "href": "/v2/spaces/fba26de0-301f-499b-9967-885a6b8ab533"
    },
    "processes": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-5123a382-2538-4c21-8a7b-d06e5f9a1f0c"
    },
    "droplets": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-11e8e36d-71f5-4be8-9487-c6d1a187e439/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.027394
Content-Length: 1454