POST api/Tickets/EditMessage
Updates the message (comment).
Request Information
URI Parameters
None.
Body Parameters
EditMessagePostName | Description | Type | Additional 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><p>Hello, I have one snapshot related to my problem, here it is:</p><p><img src="data:image/png;base64,........."/></p></Message> </EditMessagePost>
Response Information
Resource Description
HttpStatusCode 200 OK or 400 BadRequest with Message.
IHttpActionResultNone.