Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/start" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-bbaede71-78cf-4285-9cf3-b01005dd658b",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-05-07T23:37:12Z",
  "updated_at": "2015-05-07T23:37:12Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b"
    },
    "processes": {
      "href": "/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/packages"
    },
    "space": {
      "href": "/v2/spaces/559d271d-3fb1-4ca8-a1be-8258d5deb812"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-9457e394-1d68-48a1-a59f-b839bbef2bca"
    },
    "start": {
      "href": "/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-bbaede71-78cf-4285-9cf3-b01005dd658b/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a223dd92-4e57-44d9-a74a-1962d172940a
Content-Length: 1139
X-Content-Type-Options: nosniff