Skip to content

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·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

401Unauthorized - Missing or expired token, an MCP OAuth token used against the REST API, or no access to this business

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

403Forbidden - Insufficient permissions

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

422Validation Error

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.