200Successful Response
Schema: SuccessEnvelope_AssetCategoryResponse_
successbooleanmessagestringcodestringdataAssetCategoryResponse
/api/v1/fixed-assets/categories/{category_id}Update an asset category.
Path Parameters:
category_id: UUID of the category to updateRequest Body: (all fields optional)
name: Updated category name, 1-255 charsdescription: Updated description, max 1000 charsdefault_useful_life_months: Updated useful life, 1-600default_depreciation_method: Updated depreciation methoddefault_salvage_percent: Updated salvage percent, 0-100asset_ledger_id: Updated asset ledger IDdepreciation_expense_ledger_id: Updated depreciation expense ledger IDaccumulated_depreciation_ledger_id: Updated accumulated depreciation ledger IDReturns: Updated asset category.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
category_idstringrequiredSchema: AssetCategoryUpdate
namestringCategory name
descriptionstringCategory description
default_useful_life_monthsintegerDefault useful life in months
default_depreciation_methodDepreciationMethodDefault depreciation method
default_salvage_percentintegerDefault salvage value as percentage of cost
asset_ledger_idstringLedger account for asset cost
depreciation_expense_ledger_idstringLedger account for depreciation expense
accumulated_depreciation_ledger_idstringLedger account for accumulated depreciation
Schema: SuccessEnvelope_AssetCategoryResponse_
successbooleanmessagestringcodestringdataAssetCategoryResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.