Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/stop

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDN9.zqZw-a5LlW-6BoYF1xTXj4X0THap6k8-6NOv4pCR8gU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDN9.zqZw-a5LlW-6BoYF1xTXj4X0THap6k8-6NOv4pCR8gU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2016-03-14T22:30:43Z",
  "updated_at": "2016-03-14T22:30:43Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2076",
      "stack": "name-2077"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80"
    },
    "space": {
      "href": "/v2/spaces/c8c6e46e-5cd9-4dc4-a37b-6a767d929391"
    },
    "processes": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/processes"
    },
    "route_mappings": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/route_mappings"
    },
    "packages": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-e9f46a75-d107-49e4-8bc9-267b696eb678"
    },
    "droplets": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/droplets"
    },
    "tasks": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/tasks"
    },
    "start": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-9d1b4291-1bbb-46a5-8629-6ea668a59e80/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.024837
Content-Length: 1565