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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.atoydB3IM7xT9I-ESCwQKTzgb-HTtuSbdAtx3qDdJ1Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PATCH /v3/apps/guid-ff13371d-ad16-4a90-9dc2-f1332e9a5955

Body

{
  "name": "new_name"
}

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-ff13371d-ad16-4a90-9dc2-f1332e9a5955" -d '{
  "name": "new_name"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OSIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.atoydB3IM7xT9I-ESCwQKTzgb-HTtuSbdAtx3qDdJ1Y" \
	-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: be384194-1424-471f-9d75-3d07614d48f6
Content-Length: 475
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-ff13371d-ad16-4a90-9dc2-f1332e9a5955",
  "name": "new_name",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-ff13371d-ad16-4a90-9dc2-f1332e9a5955"
    },
    "processes": {
      "href": "/v3/apps/guid-ff13371d-ad16-4a90-9dc2-f1332e9a5955/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-ff13371d-ad16-4a90-9dc2-f1332e9a5955/packages"
    },
    "space": {
      "href": "/v2/spaces/b2f18c3b-cb26-4835-ba48-a7683a4175f2"
    }
  }
}