Overview /
Stock & supply /
Create a measure
Create a measure
post
https://api.flactrum.com/v1/custom-units
| Required scope | stock_items.write |
| Success status | 201 |
| Returns | One CustomUnit object |
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 POST 'https://api.flactrum.com/v1/custom-units' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"name": "ölçek",
"family": "volume",
"factor_to_base": 30
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43sq5x66wsnx135fwrwy8pb",
"name": "ölçek",
"family": "volume",
"base_unit": "mililitre",
"factor_to_base": 30,
"created_at": "2026-10-04T15:49:59+00:00",
"updated_at": "2026-10-04T15:49:59+00:00"
}
}