POST Messages
Creates a message in Pacejet and returns HTTP 201 on success. Uses standard type codes provides context-specifics for the error.
Request Information
URI Parameters
None.
Body Parameters
PacejetAPI.Models.CommonModels+MessageNotificationName | Description | Type |
---|---|---|
ID | click for description | integer |
MessageType | Pacejet.Models.Enumerations.MessageType | |
MessageContent | click for description | string |
CreateDate | click for description | string |
Location | click for description | string |
ReadUserID | click for description | integer |
TransactionID | click for description | string |
MessageTypeID | PacejetAPI.Models.CommonModels+MessageTypeID | |
MessageTypeSeverity | click for description | integer |
Message | click for description | string |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "messageType": 1, "messageContent": "sample string 2", "createDate": "sample string 3", "location": "sample string 4", "readUserID": 5, "transactionID": "sample string 6", "messageTypeID": 0, "messageTypeSeverity": 7, "message": "sample string 8" }
application/xml, text/xml
Sample:
<MessageNotification xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ID>1</ID> <MessageType>CustomerError</MessageType> <MessageContent>sample string 2</MessageContent> <CreateDate>sample string 3</CreateDate> <Location>sample string 4</Location> <ReadUserID>5</ReadUserID> <TransactionID>sample string 6</TransactionID> <MessageTypeID>API00100</MessageTypeID> <MessageTypeSeverity>7</MessageTypeSeverity> <Message>sample string 8</Message> </MessageNotification>
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type |
---|---|---|
Version | System.Version | |
Content | System.Net.Http.HttpContent | |
StatusCode | System.Net.HttpStatusCode | |
ReasonPhrase | click for description | string |
Headers | Collection of Object | |
RequestMessage | System.Net.Http.HttpRequestMessage | |
IsSuccessStatusCode | boolean |