---
title: "Platform owner: change a cost entry; send if_version"
method: PATCH
path: "/api/v1/platform/costs/{id}"
---

# Platform owner: change a cost entry; send if_version

`PATCH /api/v1/platform/costs/{id}`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/platform/costs/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Path parameters

- `id` string, required

## Request body

- object
  - `month` string: YYYY-MM
  - `category` 'marketing' | 'hosting' | 'software' | 'ai_calls' | 'payment_fees' | 'people' | 'other'
  - `amount_minor` integer
  - `currency` 'GBP' | 'USD' | 'EUR' | 'AED'
  - `note` string, nullable
  - `channel` string, nullable: Optional acquisition channel of a marketing cost, written like utm_source (google, meta, g2); sets cost per paying business by channel
  - `if_version` integer, required

## Response `200`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
