Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/stop

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMiIsImVtYWlsIjoiZW1haWwtMjkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODl9.Jhh84uGQR0P93JRGdpZmFMVxEi3Jd0QHPolbVVS__e0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-6cacf960-e148-4d70-b166-d5196ff9431c",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2016-03-17T21:41:29Z",
  "updated_at": "2016-03-17T21:41:29Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2365",
      "stack": "name-2366"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c"
    },
    "space": {
      "href": "/v2/spaces/c0d5dee0-67bf-4ebe-8925-8536c4440d81"
    },
    "processes": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/processes"
    },
    "route_mappings": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/route_mappings"
    },
    "packages": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-f58a455d-a14d-47f3-9936-5617004df74b"
    },
    "droplets": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/droplets"
    },
    "tasks": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/tasks"
    },
    "start": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-6cacf960-e148-4d70-b166-d5196ff9431c/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.025680
Content-Length: 1565