POST api/Tickets/EditMessage

Updates the message (comment).

Request Information

URI Parameters

None.

Body Parameters

EditMessagePost
NameDescriptionTypeAdditional information
Id

(Required) The message Id.

integer

None.

Message

(Required) The message body.

string

None.

Html

If true, sent message is in HTML format.

boolean

None.

Attachments

The list of new attachments to add.

Collection of NewAttachment

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Message": "<p>Hello, I have one snapshot related to my problem, here it is:</p><p><img src=\"data:image/png;base64,.........\"/></p>",
  "Html": true,
  "Attachments": null
}

application/xml, text/xml

Sample:
<EditMessagePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Attachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures" i:nil="true" />
  <Html>true</Html>
  <Id>1</Id>
  <Message>&lt;p&gt;Hello, I have one snapshot related to my problem, here it is:&lt;/p&gt;&lt;p&gt;&lt;img src="data:image/png;base64,........."/&gt;&lt;/p&gt;</Message>
</EditMessagePost>

Response Information

Resource Description

HttpStatusCode 200 OK or 400 BadRequest with Message.

IHttpActionResult

None.