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

# Backup Secrets

`PUT /api/v1/secrets_operations/backup`

Backs up all secrets in the secrets store to the backup secrets store.

Args:
    ignore_errors: Whether to ignore individual errors when backing up
        secrets and continue with the backup operation until all secrets
        have been backed up.
    delete_secrets: Whether to delete the secrets that have been
        successfully backed up from the primary secrets store. Setting
        this flag effectively moves all secrets from the primary secrets
        store to the backup 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)
