---
title: "Set Secrets"
method: PUT
path: "/api/v1/secrets"
tags: ["secure", "secrets"]
---

# Set Secrets

`PUT /api/v1/secrets`

Sets multiple secret values in the key store for multiple secret names.

Args:
    secrets (SecretsModel): Collection of secrets to store.

Returns:
    OperationResponse: The operation response.

## Request body

- SecretsModel

## Response `200`

Secrets were set successfully

- OperationResponse — Represents the response of an operation.
  - `status` boolean, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation Error

## Changes

- **2025-02-27** `b0ed6c7dac42` — 1 info
  - added the non-success response with the status `422`

[Change history](https://skmtc.dev/redis/apis/redis-data-integration-api/changes/api/v1/secrets/put.md)

---

[API](https://skmtc.dev/redis/apis/redis-data-integration-api.md) · [All operations](https://skmtc.dev/redis/apis/redis-data-integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redis/redis-data-integration-api/revisions/acb8b4d3bbed/schema)
