Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Starting an App

PUT /v3/apps/:guid/start

Request

Route

PUT /v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/start

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OX0.3IQpBvjhE9X2LlHZOwxB1mgmkEd9UmcA7GgsfHjA8mM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/start" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OX0.3IQpBvjhE9X2LlHZOwxB1mgmkEd9UmcA7GgsfHjA8mM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-8d3c7902-1a87-4a74-9786-8044f630267b",
  "name": "original_name",
  "desired_state": "STARTED",
  "total_desired_instances": 0,
  "buildpack": null,
  "created_at": "2015-08-31T21:49:59Z",
  "updated_at": "2015-08-31T21:49:59Z",
  "environment_variables": {

  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b"
    },
    "space": {
      "href": "/v2/spaces/30161272-cbdd-42df-87d6-308e06903bb3"
    },
    "processes": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/packages"
    },
    "droplet": {
      "href": "/v3/droplets/guid-54746509-0082-48db-81a7-bb292cf31fb8"
    },
    "droplets": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-8d3c7902-1a87-4a74-9786-8044f630267b/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 33f8ed2d-774a-4f91-adf4-4c662f405f1d
Content-Length: 1350
X-Content-Type-Options: nosniff