POST api/Posts/AddUpdatePostComment
Request Information
URI Parameters
None.
Body Parameters
PostComments| Name | Description | Type | Additional information |
|---|---|---|---|
| CommentID | integer |
None. |
|
| PostID | integer |
None. |
|
| PersonID | integer |
None. |
|
| Comment | string |
None. |
|
| DateModified | date |
None. |
|
| DateCreated | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"CommentID": 1,
"PostID": 2,
"PersonID": 3,
"Comment": "sample string 4",
"DateModified": "2025-12-05T20:20:56.2860253-08:00",
"DateCreated": "2025-12-05T20:20:56.2860253-08:00"
}
application/xml, text/xml
Sample:
<PostComments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities"> <DateCreated>2025-12-05T20:20:56.2860253-08:00</DateCreated> <DateModified>2025-12-05T20:20:56.2860253-08:00</DateModified> <Comment>sample string 4</Comment> <CommentID>1</CommentID> <PersonID>3</PersonID> <PostID>2</PostID> </PostComments>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PostCommentsView| Name | Description | Type | Additional information |
|---|---|---|---|
| PersonName | string |
None. |
|
| CommentID | integer |
None. |
|
| PostID | integer |
None. |
|
| PersonID | integer |
None. |
|
| Comment | string |
None. |
|
| DateModified | date |
None. |
|
| DateCreated | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"PersonName": "sample string 1",
"CommentID": 2,
"PostID": 3,
"PersonID": 4,
"Comment": "sample string 5",
"DateModified": "2025-12-05T20:20:56.2860253-08:00",
"DateCreated": "2025-12-05T20:20:56.2860253-08:00"
}
application/xml, text/xml
Sample:
<PostCommentsView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities"> <DateCreated>2025-12-05T20:20:56.2860253-08:00</DateCreated> <DateModified>2025-12-05T20:20:56.2860253-08:00</DateModified> <Comment>sample string 5</Comment> <CommentID>2</CommentID> <PersonID>4</PersonID> <PostID>3</PostID> <PersonName>sample string 1</PersonName> </PostCommentsView>