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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzd9.QiorPRcI6EY7SL8zOa9uD6mZ631icgHxtNCjEpsb-is
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v3/apps

Body

{
  "name": "my_app",
  "space_guid": "0a7ed951-c16c-44ea-bbac-3b5a6149ee19"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "0a7ed951-c16c-44ea-bbac-3b5a6149ee19"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzd9.QiorPRcI6EY7SL8zOa9uD6mZ631icgHxtNCjEpsb-is" \
	-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: fdc0df68-2a05-460e-92aa-634fc5d22b1c
Content-Length: 453
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "e53415ef-b4b8-4a31-bd53-9ecffcd289be",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/e53415ef-b4b8-4a31-bd53-9ecffcd289be"
    },
    "processes": {
      "href": "/v3/apps/e53415ef-b4b8-4a31-bd53-9ecffcd289be/processes"
    },
    "packages": {
      "href": "/v3/apps/e53415ef-b4b8-4a31-bd53-9ecffcd289be/packages"
    },
    "space": {
      "href": "/v2/spaces/0a7ed951-c16c-44ea-bbac-3b5a6149ee19"
    }
  }
}