# Method: projects.locations.cdnKeys.patch

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

Updates the specified CDN key. Only update fields specified in the call method body.

### HTTP request

`PATCH https://videostitcher.googleapis.com/v1/{cdnKey.name=projects/*/locations/*/cdnKeys/*}`

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

### Path parameters

| Parameters ||
|---|---|
| `cdnKey.name` | `string` The resource name of the CDN key, in the form of `projects/{project}/locations/{location}/cdnKeys/{id}`. The name is ignored when creating a CDN key. |

### 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/video-stitcher/docs/reference/rest/v1/projects.locations.cdnKeys#CdnKey`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/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://cloud.google.com/docs/authentication/).

### IAM Permissions

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

- `videostitcher.cdnKeys.update`

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