Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/start

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTF9.zzof24UMnEI1rRNLLqzGCC2P2GcBo1XNxuMZBCTlbh8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-08-06T00:36:51Z",
  "updated_at": "2015-08-06T00:36:51Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b"
    },
    "space": {
      "href": "/v2/spaces/7fb34a43-247c-4a75-8629-e95816a5ec47"
    },
    "processes": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-a96e955b-6e34-4213-8b82-c3f09ce41856"
    },
    "droplets": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-cdbbeab5-3edf-4d13-9829-a2a8d15b380b/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6eb7b05f-daaa-44de-8c05-6871f6be0150
Content-Length: 1350
X-Content-Type-Options: nosniff