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.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMxfQ.8e7Fn-l4qLtpiSua48RSKk6NvO8C_5yt6GdI6LjU4Mk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v3/apps

Body

{
  "name": "my_app",
  "space_guid": "819b1818-f50b-4028-86c8-de2f46754d84"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "819b1818-f50b-4028-86c8-de2f46754d84"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMxfQ.8e7Fn-l4qLtpiSua48RSKk6NvO8C_5yt6GdI6LjU4Mk" \
	-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: 9535afd1-39e1-40b9-888b-3d76fb0e2a7d
Content-Length: 357
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "0e1e7f96-0fc8-4a2a-b7da-ff121f1753db",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/0e1e7f96-0fc8-4a2a-b7da-ff121f1753db"
    },
    "processes": {
      "href": "/v3/apps/0e1e7f96-0fc8-4a2a-b7da-ff121f1753db/processes"
    },
    "space": {
      "href": "/v2/spaces/819b1818-f50b-4028-86c8-de2f46754d84"
    }
  }
}