Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/start

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.ZHCp8jycLwe4U52LqYm6wgJEhn26SxN3HG_9mJXJxlI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-09-30T23:30:43Z",
  "updated_at": "2015-09-30T23:30:43Z",
  "environment_variables": {

  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5"
    },
    "space": {
      "href": "/v2/spaces/3378a093-698c-4eff-b284-73bc8551588e"
    },
    "processes": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-8d02ce6c-685f-4d79-8c94-0740712de415"
    },
    "droplets": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-1fc4b89f-78ab-4ae4-b280-9826db5df9f5/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ba2346d1-ff83-4c2a-bf86-93f141bf32d5
Content-Length: 1349
X-Content-Type-Options: nosniff