Skip to content

Create asset category

POST/api/v1/fixed-assets/categories

Create a new asset category.

Request Body:

  • name: Category name, 1-255 chars (required)
  • description: Category description, max 1000 chars (optional)
  • default_useful_life_months: Default useful life in months, 1-600 (optional, defaults to 60)
  • default_depreciation_method: Default depreciation method - straight_line, declining_balance, double_declining, units_of_production (optional, defaults to 'straight_line')
  • default_salvage_percent: Default salvage percentage, 0-100 (optional, defaults to 0)
  • asset_ledger_id: Ledger ID for asset account (optional)
  • depreciation_expense_ledger_id: Ledger ID for depreciation expense (optional)
  • accumulated_depreciation_ledger_id: Ledger ID for accumulated depreciation (optional)

Returns: Created asset category.

Operation ID: create_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.

Request body

namestringrequired

Category name

descriptionstring

Category description

default_useful_life_monthsinteger

Default useful life in months for assets in this category

default_depreciation_methodDepreciationMethodDepreciationMethod

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

201Successful 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.