---
title: "Adds the specified value as a new version of the specified secret resource."
method: PUT
path: "/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}"
tags: ["MeshSecretValues"]
---

# Adds the specified value as a new version of the specified secret resource.

`PUT /Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}`

Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed.

## Path parameters

- `secretResourceName` string, required
- `secretValueResourceName` string, required

## Query parameters

- `api-version` '6.4-preview', required

## Request body

- SecretValueResourceDescription — This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value.
  - `name` string, required — Version identifier of the secret value.
  - `properties` SecretValueResourceProperties, required — This type describes properties of secret value resource.
    - `value` string — The actual value of the secret.

## Response `200`

OK

- SecretValueResourceDescription — This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value.
  - `name` string, required — Version identifier of the secret value.
  - `properties` SecretValueResourceProperties, required — This type describes properties of secret value resource.
    - `value` string — The actual value of the secret.

## Other responses

- `201` — Created
- `202` — Accepted
- `default` — Error

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/6ebed3032b57/schema)
