PUT api/Comment/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
Comment| Name | Description | Type | Additional information |
|---|---|---|---|
| CommentID | integer |
None. |
|
| Sender | string |
None. |
|
| string |
None. |
||
| Phone | string |
None. |
|
| Text | string |
None. |
|
| CreatedOn | date |
None. |
|
| IsSent | boolean |
None. |
|
| Error | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CommentID": 1,
"Sender": "sample string 2",
"Email": "sample string 3",
"Phone": "sample string 4",
"Text": "sample string 5",
"CreatedOn": "2025-12-29T15:48:21.1259086+00:00",
"IsSent": true,
"Error": "sample string 8"
}
application/xml, text/xml
Sample:
<Comment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Areas.Restaurant.Data"> <CommentID>1</CommentID> <CreatedOn>2025-12-29T15:48:21.1259086+00:00</CreatedOn> <Email>sample string 3</Email> <Error>sample string 8</Error> <IsSent>true</IsSent> <Phone>sample string 4</Phone> <Sender>sample string 2</Sender> <Text>sample string 5</Text> </Comment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |