Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.6Mub3UPB3M4pTI2Xzj_YwGgTvpqXgJDpZZ9YOYrr67Q
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.6Mub3UPB3M4pTI2Xzj_YwGgTvpqXgJDpZZ9YOYrr67Q" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-40460094-d035-4663-b58c-cdf4c802a2c6",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-07-27T22:43:15Z",
  "updated_at": "2015-07-27T22:43:15Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6"
    },
    "processes": {
      "href": "/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/packages"
    },
    "space": {
      "href": "/v2/spaces/24f4776a-0cfd-49d3-922b-64951eb73e49"
    },
    "droplet": {
      "href": "/v3/droplets/guid-9b8fb4ff-e212-4024-bf2b-bed0d0803727"
    },
    "start": {
      "href": "/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-40460094-d035-4663-b58c-cdf4c802a2c6/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b47acb1a-5ecf-4f47-9904-4f2473cc8c8c
Content-Length: 1152
X-Content-Type-Options: nosniff