Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Create an App

POST /v3/apps

Request

Route

POST /v3/apps

Parameters

Name Description Valid Values Example Values
name Name of the App
space_guid GUID of associated Space

Body

Name Description Default Valid Values Example Values
{
  "name": "my_app",
  "space_guid": "85fe4d38-27f2-4046-acc9-2d666751408d"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM1fQ.5udMAAl_zgUktdGV9-ApYXQfJcAIVx-6c-Gpit-boN8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "85fe4d38-27f2-4046-acc9-2d666751408d"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM1fQ.5udMAAl_zgUktdGV9-ApYXQfJcAIVx-6c-Gpit-boN8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "guid": "3b4d340d-f42a-4c19-aacc-3b30c235af3b",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/3b4d340d-f42a-4c19-aacc-3b30c235af3b"
    },
    "processes": {
      "href": "/v3/apps/3b4d340d-f42a-4c19-aacc-3b30c235af3b/processes"
    },
    "packages": {
      "href": "/v3/apps/3b4d340d-f42a-4c19-aacc-3b30c235af3b/packages"
    },
    "space": {
      "href": "/v2/spaces/85fe4d38-27f2-4046-acc9-2d666751408d"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7eb68757-c268-4cfa-8099-231dfd1c4d93
Content-Length: 453
X-Content-Type-Options: nosniff