Update category
loyverse_update_categoryUpdate a Loyverse category by sending all required fields via POST with the category ID. Include the full set of fields; partial updates are rejected. Error messages from the API are returned verbatim.
Instructions
Update an existing category (POST /categories with "id" set — Loyverse uses the same create endpoint for updates when "id" is present in the body). This is not a partial patch: include all required fields for this resource, not just the ones changing, or Loyverse will reject the request. Field names follow the Loyverse API v1.0 (developer.loyverse.com/docs). If a call fails with a 400, the error message from Loyverse is returned verbatim — adjust the fields and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The category id. | |
| body | Yes | Full set of fields for the category (required fields included, not just the ones changing). |