---
title: "Update a gift card product (send expected_version to avoid overwriting a change)"
method: PATCH
path: "/api/v1/gift-card-products/{id}"
---

# Update a gift card product (send expected_version to avoid overwriting a change)

`PATCH /api/v1/gift-card-products/{id}`

## Request

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

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `amount_type` 'fixed' | 'custom'
  - `fixed_amounts` integer[]
  - `min_minor` integer
  - `max_minor` integer
  - `design` 'aubergine' | 'lacquer' | 'sage' | 'clay' | 'festive'
  - `expiry_months` integer: 0 means no expiry. Default 24.
  - `online` boolean
  - `active` boolean
  - `sort` integer
  - `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)
