---
title: "POST /v1/{+name}:initialize"
method: POST
path: "/v1/{+name}:initialize"
tags: ["projects"]
---

# POST /v1/{+name}:initialize

`POST /v1/{+name}:initialize`

Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

## Path parameters

- `name` string, required

## Request body

- GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest — The request to initialize a location-level encryption specification.
  - `encryptionSpec` GoogleCloudContactcenterinsightsV1EncryptionSpec — A customer-managed encryption key specification that can be applied to all created resources (e.g. `Conversation`).
    - `kmsKey` string — Required. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by our default encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
    - `name` string — Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/contactcenterinsights.md) · [All operations](https://skmtc.net/google/apis/contactcenterinsights/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/contactcenterinsights/versions/e071ddf4dfc3/schema)
