Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Stopping an App

PUT /v3/apps/:guid/stop

Request

Route

PUT /v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/stop

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/stop" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIiLCJlbWFpbCI6ImVtYWlsLTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NjQ1MjIxOX0.WDTO8NpTTHLJOKyofb1f8ZUwmqY0q2x0WhF37XmYuJ4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-55abee73-c645-48be-b6ad-7f9662538746",
  "name": "original_name",
  "desired_state": "STOPPED",
  "total_desired_instances": 0,
  "created_at": "2016-02-19T02:03:39Z",
  "updated_at": "2016-02-19T02:03:39Z",
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-11",
      "stack": "name-12"
    }
  },
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746"
    },
    "space": {
      "href": "/v2/spaces/b94ff829-fbdf-40f2-b043-a8b239a657cc"
    },
    "processes": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/processes"
    },
    "route_mappings": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/route_mappings"
    },
    "packages": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-c29c5b6f-2f2a-4a13-8305-038ba463a71e"
    },
    "droplets": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/droplets"
    },
    "tasks": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/tasks"
    },
    "start": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-55abee73-c645-48be-b6ad-7f9662538746/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.020411
Content-Length: 1561