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.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMxfQ.bKl-G994Ia1ePUNSeF6ZS1_L1RJaYnEDRFwLpnK3bAw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PATCH /v3/apps/guid-2e0365ad-f1e1-4262-927b-436f559f15d5

Body

{
  "name": "new_name"
}

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-2e0365ad-f1e1-4262-927b-436f559f15d5" -d '{
  "name": "new_name"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTMxfQ.bKl-G994Ia1ePUNSeF6ZS1_L1RJaYnEDRFwLpnK3bAw" \
	-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: 34cccade-724b-4113-8011-32c3f9e9539a
Content-Length: 374
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-2e0365ad-f1e1-4262-927b-436f559f15d5",
  "name": "new_name",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-2e0365ad-f1e1-4262-927b-436f559f15d5"
    },
    "processes": {
      "href": "/v3/apps/guid-2e0365ad-f1e1-4262-927b-436f559f15d5/processes"
    },
    "space": {
      "href": "/v2/spaces/c185931c-6c59-4406-bbef-b84ac05c1ee8"
    }
  }
}