---
title: "PUT /api/v1/secrets/{secretId}"
method: PUT
path: "/api/v1/secrets/{secretId}"
tags: ["Secrets"]
---

# PUT /api/v1/secrets/{secretId}

`PUT /api/v1/secrets/{secretId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/secrets/{secretId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Update a secret

## Path parameters

- `secretId` string, required

## Query parameters

- `confirm` boolean

## Request body

- object
  - `value` string

## Response `200`

OK

- ApiUpdateSecretResponse
  - `affectedDeployments` ApiAffectedDeployment[]
    - `applicationName` string
    - `deploymentId` string
    - `deploymentTargetId` string
    - `deploymentTargetName` string
  - `createdAt` string, date-time
  - `customerOrganizationId` string, nullable
  - `id` string
  - `key` string
  - `updatedAt` string, date-time
  - `updatedBy` object, nullable
    - `createdAt` string, date-time
    - `email` string
    - `emailVerified` boolean
    - `id` string
    - `mfaEnabled` boolean
    - `name` string

## Other responses

- `409`: Conflict

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
