# Method: projects.scanConfigs.patch

- [HTTP request](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#body.aspect)
- [Try it!](https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs/patch#try-it)

Updates a ScanConfig. This method support partial update of a ScanConfig.

### HTTP request

`PATCH https://websecurityscanner.googleapis.com/v1beta/{scanConfig.name=projects/*/scanConfigs/*}`

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

### Path parameters

| Parameters ||
|---|---|
| `scanConfig.name` | `string` The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Required. The update mask applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> 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/web-security-scanner/rest/v1beta/projects.scanConfigs#ScanConfig`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1beta/projects.scanConfigs#ScanConfig`.

### 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).