Assets

PATCH

Update Asset

Update an existing asset.

Required Permission: Edit Asset
PATCH /assets/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
asset_category_id Integer Optional integer, optional, exists The asset category ID (must be active)
name String Required string, required, unique per category The name (unique within category)
position Integer Optional integer, optional The position of asset
description String Optional string, optional The description
base_unit_id Integer Required integer, required The base unit id
purchase_rate Decimal Optional decimal, optional The purchase rate
purchase_unit_id Integer Required integer, required The purchase unit id
conversion_factor Decimal Required decimal, required The conversion factor
image File Optional file, optional The image

Response

200 OK
Status Code
HTTP status code (200)
Message
Human-readable description
Data
Updated asset details