PUT api/Messages/{id}

Updates the given message by ID.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the message as a string of 8 character.

integer

Required

Body Parameters

The message to update.

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:23:00.6746885+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:23:00.6746885+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:23:00.6746885+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

204 on success.

None.