Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Create an App

POST /v3/apps

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.HOw1fgHhO5DP_Agh8V1CMSalq_QPxWPdvhOwRIGT8-k
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v3/apps

Body

{
  "name": "my_app",
  "space_guid": "34bd9731-7ef6-4ce0-9038-700d53f382de"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "34bd9731-7ef6-4ce0-9038-700d53f382de"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.HOw1fgHhO5DP_Agh8V1CMSalq_QPxWPdvhOwRIGT8-k" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 90bbe6ff-2e26-45f0-afee-99715a8eea97
Content-Length: 357
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "c98d1415-5300-4602-9150-45656f42b85e",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/c98d1415-5300-4602-9150-45656f42b85e"
    },
    "processes": {
      "href": "/v3/apps/c98d1415-5300-4602-9150-45656f42b85e/processes"
    },
    "space": {
      "href": "/v2/spaces/34bd9731-7ef6-4ce0-9038-700d53f382de"
    }
  }
}