---
title: "Update Cost"
method: PATCH
path: "/api/v1/recurring-costs/{id}"
tags: ["recurring-costs", "recurring-costs"]
---

# Update Cost

`PATCH /api/v1/recurring-costs/{id}`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/recurring-costs/{id}`
- Auth: OAuth 2 (password, token URL `/api/v1/auth/jwt/login`)

## Path parameters

- `id` integer, required

## Request body

- RecurringCostUpdate
  - `name` string, nullable
  - `category` string, nullable
  - `monthly_amount` union
    - number
    - string
  - `billing_interval` 'month' | 'quarter' | 'year', nullable
  - `interval_amount` union
    - number
    - string
  - `tax_deductible` boolean, nullable
  - `active_from` string, date, nullable
  - `active_until` string, date, nullable
  - `notes` string, nullable

## Response `200`

Successful Response

- RecurringCost
  - `id` integer, required
  - `user_id` integer, required
  - `name` string, required
  - `category` string, required
  - `monthly_amount` string, required
  - `billing_interval` string
  - `interval_amount` string, nullable
  - `receipts` Receipt[]
    - `id` integer, required
    - `content_type` string, required
    - `size_bytes` integer, required
    - `original_filename` string, nullable
  - `tax_deductible` boolean, required
  - `active_from` string, date, required
  - `active_until` string, date, nullable, required
  - `notes` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/peil/apis/peil-api.md) · [All operations](https://skmtc.dev/peil/apis/peil-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peil/apis/peil-api/revisions/ee3ca1246dde?raw)
