Skip to content

Message: ticket.create

Back to Index

Creates a new Ticket.

Body
typeKeystring (optional)

Optional type of ticket to create. If not set, a generic ticket will be created without support for relations and items.

commandsarray of command (optional)

An array of ticket commands to be applied upon creation. If any command fail, the ticket will not be created.

externalReferencestring (optional)

Optional reference to add to the ticket. All must be globally unique across all tickets. Can be used to locate the actor with other means than ID and Number.

createdAtany value (optional)

Overrides createdAt value of the ticket. If not set (or set to the future), the time will be set to the current sytem time of creation.

Response Type string

Rule Hooks

During the create message, the following Rule Hooks are run in the given order:

  1. OnTicketBeforeCreated
  2. OnTicketCreated
  3. OnTicketCommands
Back to Index