POST api/debates/v2?id_i={id_i}&token={token}

Send message to order chat

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Токен авторизации

string

Required

id_i

integer

Required

Body Parameters

NewMessageRequest
NameDescriptionTypeAdditional information
message

string

None.

to_owner

integer

None.

files

Collection of AnswerFile

None.

is_auto

Set to true if this message is sent automatically (e.g. by your own bot/script), not by a person who has actually read the buyer's previous messages. When true, the buyer's earlier messages in this chat are NOT marked as read for the seller, so the "unread" indicator is preserved until a real person reviews the conversation. Default: false (behaves as before - the chat is marked as read, as with a normal reply).

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "to_owner": 2,
  "files": [
    {
      "newid": "sample string 1",
      "name": "sample string 2",
      "type": "sample string 3",
      "size": 4,
      "message": "sample string 5",
      "warning": "sample string 6",
      "error": "sample string 7",
      "error_num": 8
    },
    {
      "newid": "sample string 1",
      "name": "sample string 2",
      "type": "sample string 3",
      "size": 4,
      "message": "sample string 5",
      "warning": "sample string 6",
      "error": "sample string 7",
      "error_num": 8
    }
  ],
  "is_auto": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<NewMessageRequest>
  <Message>sample string 1</Message>
  <ToOwner>2</ToOwner>
  <Files>
    <AnswerFile>
      <Newid>sample string 1</Newid>
      <Name>sample string 2</Name>
      <Type>sample string 3</Type>
      <Size>4</Size>
      <Message>sample string 5</Message>
      <Warning>sample string 6</Warning>
      <Error>sample string 7</Error>
      <ErrorNum>8</ErrorNum>
    </AnswerFile>
    <AnswerFile>
      <Newid>sample string 1</Newid>
      <Name>sample string 2</Name>
      <Type>sample string 3</Type>
      <Size>4</Size>
      <Message>sample string 5</Message>
      <Warning>sample string 6</Warning>
      <Error>sample string 7</Error>
      <ErrorNum>8</ErrorNum>
    </AnswerFile>
  </Files>
  <IsAuto>true</IsAuto>
</NewMessageRequest>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.