# EditCategoryInput

input type

Edit-input for a Category. Every field optional, at least ONE required; supplied fields REPLACE, omitted fields are preserved. Restructure is exactly this edit: a supplied treeParent is tenant-scoped server-side, must be ACTIVE, and the merged record is walk-validated (a cycle or a chain deeper than 64 is VALIDATION/INVALID naming the offender); the pointers stay mutually exclusive on the MERGED record — re-pointing a division-carrying root under a parent requires clearing the pointer in the SAME edit (never auto-cleared).

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `caption` | [String](/types/#scalars) | no | No further notes. |
| `code` | [String](/types/#scalars) | no | No further notes. |
| `treeParent` | [ID](/types/#scalars) | no | No further notes. |
| `merchandiseDivisionId` | [ID](/types/#scalars) | no | No further notes. |

## Used by

- [updateCategory](/reference/category/updateCategory/)
