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

# POST /v1/{+parent}:addVersion

`POST /v1/{+parent}:addVersion`

Creates a new SecretVersion containing secret data and attaches it to an existing Secret.

## Path parameters

- `parent` string, required

## Request body

- AddSecretVersionRequest — Request message for SecretManagerService.AddSecretVersion.
  - `payload` SecretPayload — A secret payload resource in the Secret Manager API. This contains the sensitive secret payload that is associated with a SecretVersion.
    - `data` string, byte — The secret data. Must be no larger than 64KiB.
    - `dataCrc32c` string, int64 — Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService will generate and store one for you. The CRC32C value is encoded as a Int64 for compatibility, and can be safely downconverted to uint32 in languages that support this type. https://cloud.google.com/apis/design/design_patterns#integer_types

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/secretmanager.md) · [All operations](https://skmtc.dev/google/apis/secretmanager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/secretmanager/revisions/7d97d4a1afab/schema)
