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

Route

PATCH /v3/apps/guid-3f48c2d0-73a7-4f08-883b-ec2e1cf8179f

Body

{
  "name": "new_name"
}

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-3f48c2d0-73a7-4f08-883b-ec2e1cf8179f" -d '{
  "name": "new_name"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MTB9.euDFjX2OzBoaShUBGZBqueSE6HOHKQlSsgVoqdZVIFg" \
	-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: be30cf44-bc0b-4d49-ab09-5bc10a66100c
Content-Length: 475
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-3f48c2d0-73a7-4f08-883b-ec2e1cf8179f",
  "name": "new_name",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-3f48c2d0-73a7-4f08-883b-ec2e1cf8179f"
    },
    "processes": {
      "href": "/v3/apps/guid-3f48c2d0-73a7-4f08-883b-ec2e1cf8179f/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-3f48c2d0-73a7-4f08-883b-ec2e1cf8179f/packages"
    },
    "space": {
      "href": "/v2/spaces/7642f387-550f-4826-9935-78ba24e4cff6"
    }
  }
}