Overview /
Stock & supply /
Update a measure
Update a measure
patch
https://api.flactrum.com/v1/custom-units/{unit}
Recipe lines already entered keep the base quantity they were saved with.
| Required scope | stock_items.write |
| Success status | 200 |
| Returns | One CustomUnit object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| unit * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| name * | string | Unique within the brand. |
| family * | string | — |
| factor_to_base * | number | — |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| name | string | — |
| family | string | — |
| base_unit | string | — |
| factor_to_base | number | How many base units one of this is: 1 scoop = 30 (ml). |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X PATCH 'https://api.flactrum.com/v1/custom-units/01m43sq5x66wsnx135fwrwy8pb' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"factor_to_base": 25
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43sq5x66wsnx135fwrwy8pb",
"name": "ölçek",
"family": "volume",
"base_unit": "mililitre",
"factor_to_base": 25,
"created_at": "2026-10-04T15:49:59+00:00",
"updated_at": "2026-10-04T15:49:59+00:00"
}
}