PUT api/Message/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

utblMessage
NameDescriptionTypeAdditional information
MessageID

integer

None.

DepartmentID

integer

None.

MessageDesc

string

None.

Username

string

None.

MessageTime

string

None.

ProfileName

string

None.

IsFile

boolean

None.

FileName

string

None.

FilePath

string

None.

FileThumb

string

None.

FileType

string

None.

MsgDateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageID": 1,
  "DepartmentID": 2,
  "MessageDesc": "sample string 3",
  "Username": "sample string 4",
  "MessageTime": "sample string 5",
  "ProfileName": "sample string 6",
  "IsFile": true,
  "FileName": "sample string 8",
  "FilePath": "sample string 9",
  "FileThumb": "sample string 10",
  "FileType": "sample string 11",
  "MsgDateTime": "2017-10-21T12:20:45.6105753+05:30"
}

application/xml, text/xml

Sample:
<utblMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <DepartmentID>2</DepartmentID>
  <FileName>sample string 8</FileName>
  <FilePath>sample string 9</FilePath>
  <FileThumb>sample string 10</FileThumb>
  <FileType>sample string 11</FileType>
  <IsFile>true</IsFile>
  <MessageDesc>sample string 3</MessageDesc>
  <MessageID>1</MessageID>
  <MessageTime>sample string 5</MessageTime>
  <MsgDateTime>2017-10-21T12:20:45.6105753+05:30</MsgDateTime>
  <ProfileName>sample string 6</ProfileName>
  <Username>sample string 4</Username>
</utblMessage>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.