Overview /
Stock & supply /
Update an asset
Update an asset
patch
https://api.flactrum.com/v1/assets/{asset}
| Required scope | assets.write |
| Success status | 200 |
| Returns | One Asset object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| asset * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| branch_id * | string | — |
| name * | string | — |
| category | string | — |
| status | string | — |
| quantity | integer | — |
| code | string | — |
| serial_number | string | — |
| manufacturer | string | — |
| model | string | — |
| unit_price | number | — |
| purchased_at | string | — |
| warranty_until | string | — |
| note | string | — |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| branch_id | string | The branch whose inventory holds it; counts run per branch. |
| name | string | — |
| category | string | — |
| status | string | — |
| quantity | integer | How many identical items this row stands for. |
| code | string|null | Your own label. Unique within the brand when given. |
| serial_number | string|null | — |
| manufacturer | string|null | — |
| model | string|null | — |
| unit_price | number|null | — |
| total_value | number|null | quantity × unit_price, or null when no price is recorded. |
| purchased_at | string|null | — |
| warranty_until | string|null | — |
| warranty_expired | boolean | False when no warranty date is recorded — unknown is not expired. |
| note | string|null | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X PATCH 'https://api.flactrum.com/v1/assets/01m43mxhwsftb23n2rgszebhgh' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"status": "in_repair",
"note": "Ayağı kırıldı"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mxhwsftb23n2rgszebhgh",
"branch_id": "01m43mxhwg0q7ec8aj2q60f776",
"name": "Ahşap masa",
"category": "furniture",
"status": "in_repair",
"quantity": 20,
"code": null,
"serial_number": null,
"manufacturer": null,
"model": null,
"unit_price": null,
"total_value": null,
"purchased_at": null,
"warranty_until": null,
"warranty_expired": false,
"note": "Ayağı kırıldı",
"created_at": "2026-10-04T14:26:05+00:00",
"updated_at": "2026-10-04T14:26:05+00:00"
}
}