POST api/my/basura/bookings/personnel/messages

Request Information

URI Parameters

None.

Body Parameters

BookingsMessagesCreateDTO
NameDescriptionTypeAdditional information
bookingid

integer

None.

senderid

integer

None.

receiverid

integer

None.

message

string

None.

image

Collection of CustomerImageDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "bookingid": 1,
  "senderid": 1,
  "receiverid": 2,
  "message": "sample string 3",
  "image": [
    {
      "file_name": "sample string 1",
      "file_path": "sample string 2"
    },
    {
      "file_name": "sample string 1",
      "file_path": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<BookingsMessagesCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.DTO">
  <bookingid>1</bookingid>
  <image>
    <CustomerImageDTO>
      <file_name>sample string 1</file_name>
      <file_path>sample string 2</file_path>
    </CustomerImageDTO>
    <CustomerImageDTO>
      <file_name>sample string 1</file_name>
      <file_path>sample string 2</file_path>
    </CustomerImageDTO>
  </image>
  <message>sample string 3</message>
  <receiverid>2</receiverid>
  <senderid>1</senderid>
</BookingsMessagesCreateDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.