---
title: "Update a package. A new version applies to new sales; sold packages keep what was bought"
method: PATCH
path: "/api/v1/package-templates/{id}"
---

# Update a package. A new version applies to new sales; sold packages keep what was bought

`PATCH /api/v1/package-templates/{id}`

## Request

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

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `price_minor` integer: VAT-inclusive price in minor units
  - `currency` string
  - `tax_rate_bps` integer: VAT rate in basis points (2000 = 20%)
  - `validity_days` integer
  - `shareable` boolean
  - `online` boolean
  - `active` boolean
  - `sort` integer
  - `items` object[]
    - `sessions` integer, required
    - `scope` 'services' | 'category' | 'any', required
    - `service_ids` string[]
    - `category` string
    - `staff_ids` string[]
  - `expected_version` integer

## 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)
