Space Docs
API ReferenceTicket

ticket.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
customerIdstringYes—ID of the associated customer
siteIdstringYes—ID of the associated site
serviceOrganizationIdunknownNo—ID of the associated service organization
billToOrganizationIdunknownNo—ID of the associated bill to organization
relatedSystemIdunknownNo—ID of the associated related system
relatedAssetIdunknownNo—ID of the associated related asset
ticketTypeenum(service_request, break_fix, installation, inspection, warranty, preventive, other)Yes—Ticket type
sourceChannelenum(portal, phone, email, monitoring, internal, other)Yes—Source channel
priorityenum(low, medium, high, critical)Yes"medium"Priority
severityunknownNo—Severity
statusenum(new, triaged, assigned, in_progress, on_hold, resolved, closed)Yes"new"Status
summarystringYes—Summary
symptomDescriptionunknownNo—Symptom description
triageNotesunknownNo—Triage notes
assignedQueueunknownNo—Assigned queue
assignedUserIdunknownNo—ID of the associated assigned user
reportedByContactIdunknownNo—ID of the associated reported by contact
categoryunknownNo—Category
slaDueAtstring.date-timeNo—Sla due at
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode
contactMethodunknownNo—Contact method
estimatedLaborHoursunknownNo—Estimated labor hours
relatedTicketIdunknownNo—ID of the associated related ticket

Example

{
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "siteId": "550e8400-e29b-41d4-a716-446655440000",
  "serviceOrganizationId": null,
  "billToOrganizationId": null,
  "relatedSystemId": null,
  "relatedAssetId": null,
  "ticketType": "service_request",
  "sourceChannel": "portal",
  "priority": "low",
  "status": "new",
  "summary": "example"
}

On this page