- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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 the folders.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 have resourcemanager.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 uses gRPC 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 of Folder
.
Response body
If successful, the response body contains an instance of Folder
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloudplatformfolders
For more information, see the Authentication Overview.