Skip to main content

Update Cost Category

PUT 

/api/cost-categories/:cost_category

Update an existing cost category.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token.

Request body fields:

  • name (required, string, max:255) — unique category name (ignores this record for the uniqueness check)
  • default_nominal_code_id (optional, integer, nullable) — default posting nominal code; must exist in nominal_codes. Send null to clear it and fall back to the nominal code mapping settings.

Note: the name of a system cost category cannot be changed (returns 422).

Request

Responses

OK

Response Headers
    Content-Type