# Method: peerings.patch

- [HTTP request](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#body.aspect)
- [Try it!](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings/patch#try-it)

**Full name**: projects.locations.global.peerings.patch

Updates the labels for specified Peering.

### HTTP request

`PATCH https://managedidentities.googleapis.com/v1/{peering.name=projects/*/locations/global/peerings/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `peering.name` | `string` Output only. Unique name of the peering in this scope including projects and location using the form: `projects/{projectId}/locations/global/peerings/{peeringId}`. |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask` format)`` Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#Peering`: \* `labels` This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `updateMask`: - `managedidentities.peerings.update` |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#Peering`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization Scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).