# Method: projects.locations.realms.patch

- [HTTP request](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms/patch#try-it)

Updates the parameters of a single Realm.

### HTTP request

`PATCH https://cloudnumberregistry.googleapis.com/v1alpha/{realm.name=projects/*/locations/*/realms/*}`

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

### Path parameters

| Parameters ||
|---|---|
| `realm.name` | `string` Required. Identifier. The resource name of the Realm. |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Optional. Field mask is used to specify the fields to be overwritten in the Realm resource by the update. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |
| `requestId` | `string` Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.realms#Realm`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.operations#Operation`.

### Authorization scopes

Requires the following OAuth scope:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `cloudnumberregistry.realms.update`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).