Update catalog item

PUT/api/v1/catalog-items/{item_id}

Update an existing catalog item.

Operation ID: update_catalog_item_api_v1_catalog_items__item_id__put·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

item_idstringrequired

Request body

namestring
item_typestring
skustring
descriptionstring
unit_priceinteger
purchase_costinteger
is_soldboolean
is_purchasedboolean
taxableboolean
income_ledger_idstring
expense_ledger_idstring
is_activeboolean

Responses

200Successful Response

successboolean
messagestring
codestring
dataCatalogItemResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

409Conflict - Resource already exists

422Validation Error

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