---
title: "Init Restic Repository"
method: POST
path: "/api/clusters/{clusterName}/restic/init/{force}"
tags: ["ClusterRestic"]
---

# Init Restic Repository

`POST /api/clusters/{clusterName}/restic/init/{force}`

Inits the restic repository for the specified cluster.

## Path parameters

- `clusterName` string, required
- `force` 'force', required

## Headers

- `Authorization` string, required

## Request body

- BackupmgrResticInitOption
  - `allow_empty_prefix` boolean
  - `copy_chunker_params` boolean
  - `force` boolean
  - `from_repo` string
  - `repository_version` string — e.g., "stable", "latest", "1", "2"

## Response `200`

Restic repository initialized

- string

## Other responses

- `403` — No valid ACL
- `500` — No cluster

---

[API](https://skmtc.net/signal18/apis/untitled-api.md) · [All operations](https://skmtc.net/signal18/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/signal18/untitled-api/revisions/7465ea0ee21a/schema)
