Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Create an App

POST /v3/apps

Request

Route

POST /v3/apps

Parameters

Name Description Valid Values Example Values
name Name of the App
space_guid GUID of associated Space

Body

Name Description Default Valid Values Example Values
{
  "name": "my_app",
  "space_guid": "f714ba7c-20a0-4440-a61f-fdf6dbcf7d55"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzl9.GiZEeaWC_3oChcpUSA3COmAbcfwSXsGWf53ahOkkJO4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps" -d '{
  "name": "my_app",
  "space_guid": "f714ba7c-20a0-4440-a61f-fdf6dbcf7d55"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzl9.GiZEeaWC_3oChcpUSA3COmAbcfwSXsGWf53ahOkkJO4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "guid": "a8c3f363-d641-4c25-b70c-f91256d46a2f",
  "name": "my_app",
  "_links": {
    "self": {
      "href": "/v3/apps/a8c3f363-d641-4c25-b70c-f91256d46a2f"
    },
    "processes": {
      "href": "/v3/apps/a8c3f363-d641-4c25-b70c-f91256d46a2f/processes"
    },
    "packages": {
      "href": "/v3/apps/a8c3f363-d641-4c25-b70c-f91256d46a2f/packages"
    },
    "space": {
      "href": "/v2/spaces/f714ba7c-20a0-4440-a61f-fdf6dbcf7d55"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e44ec5ba-092e-49d2-b6e1-b79659795e12
Content-Length: 453
X-Content-Type-Options: nosniff