Space Docs
API ReferenceTicket

ticket.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
customerIdstringYesID of the associated customer
siteIdstringYesID of the associated site
serviceOrganizationIdunknownNoID of the associated service organization
billToOrganizationIdunknownNoID of the associated bill to organization
relatedSystemIdstringNoID of the associated related system
relatedAssetIdstringNoID of the associated related asset
ticketTypeenum(service_request, break_fix, installation, inspection, warranty, preventive, other)YesTicket type
sourceChannelenum(portal, phone, email, monitoring, internal, other)YesSource channel
priorityenum(low, medium, high, critical)Yes"medium"Priority
severityenum(cosmetic, degraded, down, safety)NoSeverity
statusenum(new, triaged, assigned, in_progress, on_hold, resolved, closed)Yes"new"Status
summarystringYesSummary
symptomDescriptionstringNoSymptom description
triageNotesstringNoTriage notes
assignedQueuestringNoAssigned queue
assignedUserIdstringNoID of the associated assigned user
reportedByContactIdstringNoID of the associated reported by contact
categorystringNoCategory
slaDueAtstring.date-timeNoSla due at
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode
contactMethodenum(phone, email, portal, in_person, chat)NoContact method
estimatedLaborHoursnumberNoEstimated labor hours
relatedTicketIdstring.uuidNoID of the associated related ticket

Example

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

On this page