POST api/Messages

Creates a message in the database. The message must be allready encoded by the client.

Request Information

URI Parameters

None.

Body Parameters

The message to create.

Messages
NameDescriptionTypeAdditional information
id

integer

None.

Mid

string

None.

Mextid

string

None.

Mdate

date

None.

Mtext

Collection of byte

None.

Mversion

integer

None.

Apikey

string

None.

Deleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "Mid": "sample string 2",
  "Mextid": "sample string 3",
  "Mdate": "2025-12-06T04:25:00.0970854+00:00",
  "Mtext": "QEA=",
  "Mversion": 5,
  "Apikey": "sample string 6",
  "Deleted": true
}

text/html

Sample:
{"id":1,"Mid":"sample string 2","Mextid":"sample string 3","Mdate":"2025-12-06T04:25:00.0970854+00:00","Mtext":"QEA=","Mversion":5,"Apikey":"sample string 6","Deleted":true}

application/xml, text/xml

Sample:
<Messages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaveAMessageAPI.Models.Entitys">
  <Apikey>sample string 6</Apikey>
  <Deleted>true</Deleted>
  <Mdate>2025-12-06T04:25:00.0970854+00:00</Mdate>
  <Mextid>sample string 3</Mextid>
  <Mid>sample string 2</Mid>
  <Mtext>QEA=</Mtext>
  <Mversion>5</Mversion>
  <id>1</id>
</Messages>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The saved message.

Messages
NameDescriptionTypeAdditional information
id

integer

None.

Mid

string

None.

Mextid

string

None.

Mdate

date

None.

Mtext

Collection of byte

None.

Mversion

integer

None.

Apikey

string

None.

Deleted

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "Mid": "sample string 2",
  "Mextid": "sample string 3",
  "Mdate": "2025-12-06T04:25:00.0970854+00:00",
  "Mtext": "QEA=",
  "Mversion": 5,
  "Apikey": "sample string 6",
  "Deleted": true
}

text/html

Sample:
{"id":1,"Mid":"sample string 2","Mextid":"sample string 3","Mdate":"2025-12-06T04:25:00.0970854+00:00","Mtext":"QEA=","Mversion":5,"Apikey":"sample string 6","Deleted":true}

application/xml, text/xml

Sample:
<Messages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaveAMessageAPI.Models.Entitys">
  <Apikey>sample string 6</Apikey>
  <Deleted>true</Deleted>
  <Mdate>2025-12-06T04:25:00.0970854+00:00</Mdate>
  <Mextid>sample string 3</Mextid>
  <Mid>sample string 2</Mid>
  <Mtext>QEA=</Mtext>
  <Mversion>5</Mversion>
  <id>1</id>
</Messages>