POST api/chat/savemessage

Request Information

URI Parameters

None.

Body Parameters

ChatMessageSaveCommandDataContract
NameDescriptionTypeAdditional information
Id

string

None.

DateTimeCreated

date

None.

MessageStatus

string

None.

NegotiatorId

integer

None.

NegotiatorName

string

None.

Comments

Collection of ChatMessageCommentDataContract

None.

Recipients

Collection of ChatMessageUserDataContract

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "DateTimeCreated": "2018-12-10T16:01:29.7946215Z",
  "MessageStatus": "sample string 3",
  "NegotiatorId": 4,
  "NegotiatorName": "sample string 5",
  "Comments": [
    {
      "ChatMessageUser": {
        "UserId": 1,
        "UserName": "sample string 2"
      },
      "Comment": "sample string 1",
      "DateTime": "2018-12-10T16:01:29.7946215Z"
    },
    {
      "ChatMessageUser": {
        "UserId": 1,
        "UserName": "sample string 2"
      },
      "Comment": "sample string 1",
      "DateTime": "2018-12-10T16:01:29.7946215Z"
    }
  ],
  "Recipients": [
    {
      "UserId": 1,
      "UserName": "sample string 2"
    },
    {
      "UserId": 1,
      "UserName": "sample string 2"
    }
  ]
}

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 'ChatMessageSaveCommandDataContract'.

Response Information

Resource Description

ChatMessageSaveResponseDataContract
NameDescriptionTypeAdditional information
Id

string

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "IsSuccess": true
}