POST api/Message/NewMessage
Request Information
URI Parameters
None.
Body Parameters
NewMessageModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IdUser | integer |
None. |
|
| IdDepartment | byte |
None. |
|
| Title | string |
None. |
|
| Context | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| TelNo | string |
None. |
|
| MobileNo | string |
None. |
|
| string |
None. |
||
| CompanyName | string |
None. |
|
| FullName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdUser": 1,
"IdDepartment": 64,
"Title": "sample string 2",
"Context": "sample string 3",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"TelNo": "sample string 6",
"MobileNo": "sample string 7",
"Email": "sample string 8",
"CompanyName": "sample string 9",
"FullName": "sample string 10"
}
text/xml
Sample:
<NewMessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZhaniyaClub.Models"> <CompanyName>sample string 9</CompanyName> <Context>sample string 3</Context> <Email>sample string 8</Email> <FirstName>sample string 4</FirstName> <FullName>sample string 10</FullName> <IdDepartment>64</IdDepartment> <IdUser>1</IdUser> <LastName>sample string 5</LastName> <MobileNo>sample string 7</MobileNo> <TelNo>sample string 6</TelNo> <Title>sample string 2</Title> </NewMessageModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>