POST api/ticket/{unitID}/create

Request Information

URI Parameters

NameDescriptionTypeAdditional information
unitID

integer

Required

Body Parameters

TicketMessage
NameDescriptionTypeAdditional information
Text

string

Required

Type

string

Required

MessageID

integer

None.

TicketID

integer

None.

TimeStamp

date

None.

UserID

integer

None.

Error

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Text": "sample string 1",
  "Type": "sample string 2",
  "MessageID": 3,
  "TicketID": 4,
  "TimeStamp": "2022-07-03T18:08:17.8736593+00:00",
  "UserID": 6,
  "Error": "sample string 7"
}

application/xml, text/xml

Sample:
<TicketMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WisspNetApi.Models">
  <Error>sample string 7</Error>
  <MessageID>3</MessageID>
  <Text>sample string 1</Text>
  <TicketID>4</TicketID>
  <TimeStamp>2022-07-03T18:08:17.8736593+00:00</TimeStamp>
  <Type>sample string 2</Type>
  <UserID>6</UserID>
</TicketMessage>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TicketMessage'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.