Update asset category

PATCH/api/v1/fixed-assets/categories/{category_id}

Update an asset category.

Path Parameters:

  • category_id: UUID of the category to update

Request Body: (all fields optional)

  • name: Updated category name, 1-255 chars
  • description: Updated description, max 1000 chars
  • default_useful_life_months: Updated useful life, 1-600
  • default_depreciation_method: Updated depreciation method
  • default_salvage_percent: Updated salvage percent, 0-100
  • asset_ledger_id: Updated asset ledger ID
  • depreciation_expense_ledger_id: Updated depreciation expense ledger ID
  • accumulated_depreciation_ledger_id: Updated accumulated depreciation ledger ID

Returns: Updated asset category.

Operation ID: update_asset_category_api_v1_fixed_assets_categories__category_id__patch·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

category_idstringrequired

Request body

namestring

Category name

descriptionstring

Category description

default_useful_life_monthsinteger

Default useful life in months

default_depreciation_methodDepreciationMethod

Default depreciation method

default_salvage_percentinteger

Default salvage value as percentage of cost

asset_ledger_idstring

Ledger account for asset cost

depreciation_expense_ledger_idstring

Ledger account for depreciation expense

accumulated_depreciation_ledger_idstring

Ledger account for accumulated depreciation

Responses

200Successful Response

successboolean
messagestring
codestring
dataAssetCategoryResponse

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject