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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MSIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.ycP5KPuRDr2nat8wAdbLX542SI-N7irWBJhn-GfGxNk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v3/apps

Body

{
  "name": "my_app",
  "space_guid": "b26909df-142a-4b80-9c61-e10847638aeb"
}

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "b26909df-142a-4b80-9c61-e10847638aeb"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MSIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.ycP5KPuRDr2nat8wAdbLX542SI-N7irWBJhn-GfGxNk" \
	-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: 215620e7-3ee4-4474-8f76-7bceae9afed4
Content-Length: 453
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "guid": "fbd0db93-0285-46d7-94c3-b5ef2af1dd89",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/fbd0db93-0285-46d7-94c3-b5ef2af1dd89"
    },
    "processes": {
      "href": "/v3/apps/fbd0db93-0285-46d7-94c3-b5ef2af1dd89/processes"
    },
    "packages": {
      "href": "/v3/apps/fbd0db93-0285-46d7-94c3-b5ef2af1dd89/packages"
    },
    "space": {
      "href": "/v2/spaces/b26909df-142a-4b80-9c61-e10847638aeb"
    }
  }
}