POST api/Tickets/NewAnonymousTicket

Creates a new anonymous ticket. If the user's email is not registered, the new user account will be created - if the Requestor is configured so, otherwise bad request is returned.

Request Information

URI Parameters

None.

Body Parameters

NewAnonymousTicketPost
NameDescriptionTypeAdditional information
Email

(Required) User's email

string

None.

InternalGroupId

New user will be added to this internal group.

integer

None.

Subject

(Required) Subject

string

None.

Message

(Required) Description details

string

None.

IsMessageHtml

True if the Message is in html format

boolean

None.

IsMobileDevice

If true, the ticket has been sent from a mobile device (phone, tablet)

boolean

None.

TicketType

Ticket type to create

TicketTypeEnum

None.

ServiceId

Service Id, optional for TIC, required for others

integer

None.

Attachments

(Optional) Attachments

Collection of NewAttachment

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "john.doe@domain.com",
  "InternalGroupId": null,
  "Subject": "I cannot access to the net printer",
  "Message": "I don't know why, it was operating yesterday.",
  "IsMessageHtml": false,
  "IsMobileDevice": false,
  "TicketType": 2,
  "ServiceId": 1,
  "Attachments": null
}

application/xml, text/xml

Sample:
<NewAnonymousTicketPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Attachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures" i:nil="true" />
  <Email>john.doe@domain.com</Email>
  <InternalGroupId i:nil="true" />
  <IsMessageHtml>false</IsMessageHtml>
  <IsMobileDevice>false</IsMobileDevice>
  <Message>I don't know why, it was operating yesterday.</Message>
  <ServiceId>1</ServiceId>
  <Subject>I cannot access to the net printer</Subject>
  <TicketType>Incident</TicketType>
</NewAnonymousTicketPost>

Response Information

Resource Description

NewTicketResult
NameDescriptionTypeAdditional information
TicketREF

Reference ID of the newly created Ticket

string

None.

TicketId

The unique identifier of the newly created Ticket

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "TicketREF": "TIC-000023",
  "TicketId": 123
}

application/xml, text/xml

Sample:
<NewTicketResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <TicketId>123</TicketId>
  <TicketREF>TIC-000023</TicketREF>
</NewTicketResult>