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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzd9.Y1LBQ-I0-_5J3F_Yq83sccWAgqIsSjgXkGDf_TvrmgY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PATCH /v3/apps/guid-11ad609f-7892-406b-bf96-59d7c9b723f8

Body

{
  "name": "new_name"
}

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-11ad609f-7892-406b-bf96-59d7c9b723f8" -d '{
  "name": "new_name"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzd9.Y1LBQ-I0-_5J3F_Yq83sccWAgqIsSjgXkGDf_TvrmgY" \
	-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: 0da2930a-e03c-49af-8ac1-98bb5a7ec2d1
Content-Length: 475
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-11ad609f-7892-406b-bf96-59d7c9b723f8",
  "name": "new_name",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-11ad609f-7892-406b-bf96-59d7c9b723f8"
    },
    "processes": {
      "href": "/v3/apps/guid-11ad609f-7892-406b-bf96-59d7c9b723f8/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-11ad609f-7892-406b-bf96-59d7c9b723f8/packages"
    },
    "space": {
      "href": "/v2/spaces/fa06dc69-c6e0-4456-9528-fd422e341517"
    }
  }
}