GraphQL reference

CreateIncidentInput

Input

Autogenerated input type of CreateIncident

mutation { organization(id: $organizationId) { project(id: $projectId) { createIncident } } }

Example

mutation CreateIncident(
  $organizationId: ID!
  $projectId: ID!
  $input: CreateIncidentInput!
) {
  organization(id: $organizationId) {
    project(id: $projectId) {
      createIncident(input: $input) {
        incident
        errors
      }
    }
  }
}

Fields

FieldTypeDescription
clientMutationIdStringA unique identifier for the client performing the mutation.
copyAttachments[CopyAttachment!]—
createAttachments[CreateAttachment!]—
deleteAttachments[DeleteAttachment!]—
descriptionString—
idID!—
incidentTypeIdID—
locationIdID—
mutationMetadataJSON—
nowISO8601DateTime—
occurredAtISO8601DateTime!—
records[IncidentRecordInput!]—
statusString—
titleString!—
upsertCustomFieldSectionEntries[CustomFieldSectionEntryInput!]—
upsertCustomFieldValues[CustomFieldValueInput!]—