- [HTTP request](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#body.request_body)
- [Response body](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#body.aspect)
- [Try it!](https://docs.cloud.google.com/agent-registry/reference/rest/v1/projects.locations/updateSkillEncryptionSpec.md.txt#try-it)

Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific project and location.

This method is only allowed when no Skills exist in the target project and location. If any Skill already exists in the location, the request fails with `FAILED_PRECONDITION`.

### HTTP request

`PATCH https://agentregistry.googleapis.com/v1/{skillEncryptionSpec.name=projects/*/locations/*/skillEncryptionSpec}`

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

### Path parameters

| Parameters ||
|---|---|
| `skillEncryptionSpec.name` | `string` Identifier. Resource name of the SkillEncryptionSpec. Format: `projects/{project}/locations/{location}/skillEncryptionSpec` |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`FieldMask` format)`` Optional. Field mask is used to specify the fields to be overwritten in the SkillEncryptionSpec resource by the update. The fields specified in the updateMask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten. 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 `SkillEncryptionSpec`.

### Response body

If successful, the response body contains an instance of `Operation`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/cloud-platform.read-only`
- `https://www.googleapis.com/auth/agentregistry.read-write`
- `https://www.googleapis.com/auth/agentregistry.read-only`

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