# Method: projects.locations.cloudControls.patch

- [HTTP request](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/projects.locations.cloudControls/patch#body.aspect_1)

Updates a custom cloud control. This method allows for partial updates of a cloud control. Use the `updateMask` to specify which fields to update. Consider the following:

- If you provide an `updateMask`, only the fields that are specified in the mask are updated.
- If you don't provide an `updateMask`, all the fields that are present in the request's `cloudControl` body are used to overwrite the existing resource.

You can only update cloud controls with the `CUSTOM` type. A successful update creates a new version of the cloud control.

### HTTP request

`PATCH https://cloudsecuritycompliance.googleapis.com/v1/{cloudControl.name=projects/*/locations/*/cloudControls/*}`

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

### Path parameters

| Parameters ||
|---|---|
| `cloudControl.name` | `string` Required. Identifier. The name of the cloud control, in either of the formats: - `organizations/{organization}/locations/{location}/cloudControls/{cloudControl}` - `projects/{project}/locations/{location}/cloudControls/{cloudControl}`. The only supported location is `global`. |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Optional. Use a field mask to specify the fields to be overwritten in the cloud control during the update. The fields that you specify in the `updateMask` are relative to the cloud control, not the full request. A field is overwritten if it is in the mask. If you don't provide a mask, all fields in the request are updated. You can update the following fields: - Display name - Description - Parameters - Rules - Parameter specification This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/organizations.locations.cloudControls#CloudControl`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/organizations.locations.cloudControls#CloudControl`.

### 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:

- `cloudsecuritycompliance.cloudControls.update`

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