---
title: "Update contract usability"
method: PUT
path: "/bus/contract/{id}/usability"
tags: ["bus"]
---

# Update contract usability

`PUT /bus/contract/{id}/usability`

Updates the usability of the contract with the provided ID. A contract can be marked as either 'good' or 'bad'. If a contract is considered bad, all of the data in that contract needs to be migrated to 'good' contracts to ensure all of the data remains healthy and the files continue to be accessible.

## Path parameters

- `id` string, required — A unique identifier for a file contract

## Request body

- 'good' | 'bad'

## Response `200`

Contract usability updated successfully

## Other responses

- `400` — Malformed request
- `404` — Contract not found
- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/versions/184a3d5207da/schema)
