Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Updating an App

PATCH /v3/apps/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
name Name of the App

Request

Headers

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

Route

PATCH /v3/apps/guid-91cb249c-6d45-40f8-9416-674578a10ec7

Body

{
  "name": "new_name"
}

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-91cb249c-6d45-40f8-9416-674578a10ec7" -d '{
  "name": "new_name"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.NbxTcaROLOipsSBMUnRsTDn6Eo1V67foZoU2U8SWYx4" \
	-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: 5ca23944-5d55-470d-aac0-9acccfe5bde3
Content-Length: 475
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-91cb249c-6d45-40f8-9416-674578a10ec7",
  "name": "new_name",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-91cb249c-6d45-40f8-9416-674578a10ec7"
    },
    "processes": {
      "href": "/v3/apps/guid-91cb249c-6d45-40f8-9416-674578a10ec7/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-91cb249c-6d45-40f8-9416-674578a10ec7/packages"
    },
    "space": {
      "href": "/v2/spaces/f0f85708-0841-4275-8534-988c9effd9fa"
    }
  }
}