Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/start

Body

Name Description Default Valid Values Example Values
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/start" -d '{

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

Response

Status

200 OK

Body

{
  "guid": "guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "created_at": "2015-05-21T01:03:14Z",
  "updated_at": "2015-05-21T01:03:14Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4"
    },
    "processes": {
      "href": "/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/packages"
    },
    "space": {
      "href": "/v2/spaces/9fb3710a-37e1-468d-ad53-c3496189ddd3"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-3d1eb843-02b3-4302-9b56-93937c6c21a9"
    },
    "start": {
      "href": "/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-e47638e9-9095-4190-8bdb-a8ff9207f9f4/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 00b41a67-04de-4131-8306-59ca9ea914b6
Content-Length: 1139
X-Content-Type-Options: nosniff