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
space_guid GUID of associated Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUyfQ.H2DOvwYl0EbH87jd-0HYK9GULQc5vwYrBulH7X11Ja0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v3/apps

Body

{
  "space_guid": "91a43f66-9274-43ad-bace-08badd9c4482"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "space_guid": "91a43f66-9274-43ad-bace-08badd9c4482"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUyfQ.H2DOvwYl0EbH87jd-0HYK9GULQc5vwYrBulH7X11Ja0" \
	-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: 761ac3d0-f453-4820-9b50-3aef02ad4813
Content-Length: 337
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "92b2a250-540e-41ae-97a3-f96b1cfa4d2f",
  "_links": {
    "self": {
      "href": "/v3/apps/92b2a250-540e-41ae-97a3-f96b1cfa4d2f"
    },
    "processes": {
      "href": "/v3/apps/92b2a250-540e-41ae-97a3-f96b1cfa4d2f/processes"
    },
    "space": {
      "href": "/v2/spaces/91a43f66-9274-43ad-bace-08badd9c4482"
    }
  }
}