Method: folders.patch Stay organized with collections Save and categorize content based on your preferences.
Updates a Folder, changing its displayName. Changes to the folder displayName will be rejected if they violate either the displayName formatting rules or naming constraints described in thefolders.create documentation.
The Folder's display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression:[\p{L}\p{N}][\p{L}\p{N}_- ]{1,28}[\p{L}\p{N}]. The caller must haveresourcemanager.folders.update permission on the identified folder.
If the update fails due to the unique name constraint then a PreconditionFailure explaining this violation will be returned in the Status.details field.
HTTP request
PATCH https://cloudresourcemanager.googleapis.com/v2beta1/{folder.name=folders/*}
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
folder.name |
Output only. The resource name of the Folder. Its format is |
Query parameters
| Parameters | |
|---|---|
updateMask |
Fields to be updated. Only the This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance ofFolder.
Response body
If successful, the response body contains an instance ofFolder.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloudplatformfolders
For more information, see theAuthentication Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-11 UTC.