NewCsCaseInput
input type
Create-input for a CsCase. Refs validate in-tenant + non-doomed; linkedFromCaseId validates closed-only; assignedTo validates in-tenant + active. The optional initialMessage appends in the same transaction. The consumer lane is openMyCase — NOT this shape.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — none — the CPG divergence: the caption IS the subject line, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank. |
caseType | String String! | yes | return_request | refund_inquiry | product_issue | complaint | general_inquiry | warranty_claim | shipping_issue | order_change | other — the canned registry validates. |
priority | String | no | Defaults 'normal' when omitted. |
consumerId | ID | no | The registered Consumer this case is FOR (omit = a guest case). Immutable at birth — a consumer-ref’d case mints its write-once casebook index row in the create transaction. |
organizationId | ID | no | |
orderId | ID | no | |
appointmentId | ID | no | |
returnId | ID | no | |
fulfillmentId | ID | no | |
paymentId | ID | no | |
linkedFromCaseId | ID | no | The closed case this one reopens. Immutable. |
assignedTo | ID | no | In-tenant + active User at set. |
slaDueAt | String | no | ISO-8601 instant — manual. |
initialMessage | CsCaseInitialMessageInput | no | Optional opening message — appends in the same transaction. |