Method: folders.patch

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 no longer than 30 characters. This is captured by the regular expression: [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,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

string

Output only. The resource name of the Folder. Its format is folders/{folder_id}, for example: "folders/1234".

Query parameters

Parameters
updateMask

string (FieldMask format)

Fields to be updated. Only the displayName can be updated.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

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.

此页内容是否有用?请给出您的反馈和评价:

发送以下问题的反馈:

此网页
Resource Manager