---
title: "Archive contracts"
method: POST
path: "/contracts/archive"
---

# Archive contracts

`POST /contracts/archive`

## Request body

- object — A mapping of file contract IDs to archive reasons.

## Response `200`

Contracts archived successfully

## Other responses

- `500` — Internal server error

## Changes

- **2024-12-16** `0b3014765a94` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/contracts/archive/post.md)

---

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