---
title: "Upsert Env External Secret Record"
method: POST
path: "/v1/envs/{env_id}/secrets"
---

# Upsert Env External Secret Record

`POST /v1/envs/{env_id}/secrets`

Create or rotate an env-scoped external secret, encrypted in DB.

## Path parameters

- `env_id` string, required

## Request body

- EnvExternalSecretInput — Dashboard payload for creating or rotating an env-scoped secret.
  - `key` string, required
  - `value` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/tabtabtab/apis/fastapi.md) · [All operations](https://skmtc.dev/tabtabtab/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tabtabtab/fastapi/revisions/73961d1e6152/schema)
