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.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.6C0xPN-XyCqcjXbOqhwKxhPwnfxzVxHkMsi9R7mte1g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v3/apps

Body

{
  "name": "my_app",
  "space_guid": "f28e4705-7620-43e6-b5f0-aba1b1b1fd40"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "f28e4705-7620-43e6-b5f0-aba1b1b1fd40"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.6C0xPN-XyCqcjXbOqhwKxhPwnfxzVxHkMsi9R7mte1g" \
	-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: cf14249f-47bf-41b4-b8fe-4df00f609a16
Content-Length: 453
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "5ee0fcc4-6fd3-4659-a5de-19465b60787d",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/5ee0fcc4-6fd3-4659-a5de-19465b60787d"
    },
    "processes": {
      "href": "/v3/apps/5ee0fcc4-6fd3-4659-a5de-19465b60787d/processes"
    },
    "packages": {
      "href": "/v3/apps/5ee0fcc4-6fd3-4659-a5de-19465b60787d/packages"
    },
    "space": {
      "href": "/v2/spaces/f28e4705-7620-43e6-b5f0-aba1b1b1fd40"
    }
  }
}