PUT api/Village/{village}/Journal/{id}/Comment/{commentId}
Edit a comment on a journal entry
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Journal entry ID |
globally unique identifier |
Required |
commentId |
Comment ID |
globally unique identifier |
Required |
village | string |
None. |
Body Parameters
AddJournalCommentModelName | Description | Type | Additional information |
---|---|---|---|
Comment |
Text of the comment |
string |
Required Data type: MultilineText String length: inclusive between 0 and 4096 |
ParentCommentId |
Parent comment ID (for replies) |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "Comment": "sample string 1", "ParentCommentId": "d4985a56-a9f9-412a-8b54-4b7304ee7a6d" }
application/xml, text/xml
Sample:
<AddJournalCommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Comment>sample string 1</Comment> <ParentCommentId>d4985a56-a9f9-412a-8b54-4b7304ee7a6d</ParentCommentId> </AddJournalCommentModel>
multipart/form-data
Sample:
Response Information
Resource Description
JournalEntryCommentModelName | Description | Type | Additional information |
---|---|---|---|
CommentId |
Unique ID of the comment |
globally unique identifier |
None. |
JournalId |
Unique ID of the journal entry |
globally unique identifier |
None. |
VillageId |
Unique ID of the village |
globally unique identifier |
None. |
Comment |
Comment text |
string |
None. |
CreatedBy |
Name of the user who entered the comment |
string |
None. |
CreatedById |
Unique ID of the user who entered the comment |
globally unique identifier |
None. |
Created |
When the comment was entered |
date |
None. |
Updated |
When the comment was updated (if edited) |
date |
None. |
UpdatedById |
Unique ID of the user who updated |
globally unique identifier |
None. |
UpdatedBy |
Name of the user who updated |
string |
None. |
Likes | Collection of globally unique identifier |
None. |
|
ParentCommentId |
Parent comment ID (for replies) |
globally unique identifier |
None. |
Deleted |
Comment has been deleted |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "CommentId": "d15c90ba-b0ac-442d-b4cf-33e3e38ca597", "JournalId": "35349fc4-c483-4092-9ac8-4d8ed936d077", "VillageId": "ea6ce9b4-eb23-4553-8301-665894a82682", "Comment": "sample string 4", "CreatedBy": "sample string 7", "CreatedById": "062941c6-c697-40c5-afa2-54b631296531", "Created": "2025-06-03T05:01:37.325+00:00", "Updated": "2025-06-03T05:01:37.325+00:00", "UpdatedById": "6f3e9785-8eb4-48c9-8983-3227d62de5be", "UpdatedBy": "sample string 14", "Likes": [ "c9552023-da83-421b-bf3d-f2e3642ca98a", "4cbd1e38-983b-4d7c-ba52-9d7dc1e97b0e" ], "ParentCommentId": "e23ed715-8e20-4890-81aa-a46c5ec75ed4", "Deleted": true }
application/xml, text/xml
Sample:
<JournalEntryCommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Comment>sample string 4</Comment> <CommentId>d15c90ba-b0ac-442d-b4cf-33e3e38ca597</CommentId> <Created>2025-06-03T05:01:37.3258712+00:00</Created> <CreatedBy>sample string 7</CreatedBy> <CreatedByFirstName>sample string 5</CreatedByFirstName> <CreatedById>062941c6-c697-40c5-afa2-54b631296531</CreatedById> <CreatedByLastName>sample string 6</CreatedByLastName> <Deleted>true</Deleted> <JournalId>35349fc4-c483-4092-9ac8-4d8ed936d077</JournalId> <Likes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>c9552023-da83-421b-bf3d-f2e3642ca98a</d2p1:guid> <d2p1:guid>4cbd1e38-983b-4d7c-ba52-9d7dc1e97b0e</d2p1:guid> </Likes> <ParentCommentId>e23ed715-8e20-4890-81aa-a46c5ec75ed4</ParentCommentId> <Updated>2025-06-03T05:01:37.3258712+00:00</Updated> <UpdatedBy>sample string 14</UpdatedBy> <UpdatedByFirstName>sample string 12</UpdatedByFirstName> <UpdatedById>6f3e9785-8eb4-48c9-8983-3227d62de5be</UpdatedById> <UpdatedByLastName>sample string 13</UpdatedByLastName> <VillageId>ea6ce9b4-eb23-4553-8301-665894a82682</VillageId> </JournalEntryCommentModel>