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

Route

POST /v3/apps

Body

{
  "name": "my_app",
  "space_guid": "3dca2887-51b5-4567-ab14-ab2827652a59"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "3dca2887-51b5-4567-ab14-ab2827652a59"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MTB9.u_DUz4bXg7L_cnH9dqDKSN86FDQyLB5mHos_Lr4g65Y" \
	-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: 21e88674-3004-430d-a9c6-e2db6cdf5e5a
Content-Length: 453
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "811aaf3c-92e3-4fb8-862f-f09e4e38115b",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/811aaf3c-92e3-4fb8-862f-f09e4e38115b"
    },
    "processes": {
      "href": "/v3/apps/811aaf3c-92e3-4fb8-862f-f09e4e38115b/processes"
    },
    "packages": {
      "href": "/v3/apps/811aaf3c-92e3-4fb8-862f-f09e4e38115b/packages"
    },
    "space": {
      "href": "/v2/spaces/3dca2887-51b5-4567-ab14-ab2827652a59"
    }
  }
}