Appearance
UpsertCapabilityInput
Type: Input
Input for creating or replacing a capability. Supplying id overwrites that capability wholesale (unset fields become null) and preserves its createdAt; omitting id creates one.
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| code | String! | Capability code, unique within the tenant. Must match ^[A-Z][A-Z0-9_]{0,63}$ (uppercase letters, digits, underscores). | |
| constraintSchema | [String!] | Constraint discriminants work centers may set for this capability. Each entry's prefix must be a known CapabilityConstraint discriminant. Omit for a capability that takes no constraints. | |
| description | String | Optional free-text explanation of the capability. | |
| id | CapabilityID | TypeID (prefix "cpb") of an existing capability to overwrite. Omit to create a new capability with a server-generated id. | |
| name | String! | Human-readable capability name. Must not be blank. |