---
title: "Restore Secrets"
method: PUT
path: "/api/v1/secrets_operations/restore"
tags: ["secrets"]
---

# Restore Secrets

`PUT /api/v1/secrets_operations/restore`

Restores all secrets from the backup secrets store into the main secrets store.

Args:
    ignore_errors: Whether to ignore individual errors when restoring
        secrets and continue with the restore operation until all secrets
        have been restored.
    delete_secrets: Whether to delete the secrets that have been
        successfully restored from the backup secrets store. Setting
        this flag effectively moves all secrets from the backup secrets
        store to the primary secrets store.

## Query parameters

- `ignore_errors` boolean
- `delete_secrets` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/versions/febb01b8bce3/schema)
