POST api/Village/{village}/Journal/{id}/Comment

Add a comment to a journal entry

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Journal entry ID

globally unique identifier

Required

village

string

None.

Body Parameters

AddJournalCommentModel
NameDescriptionTypeAdditional 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": "b3552e51-b057-4b8f-b476-0769230de259"
}

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>b3552e51-b057-4b8f-b476-0769230de259</ParentCommentId>
</AddJournalCommentModel>

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultipartMediaTypeFormatter' to write type 'AddJournalCommentModel'.

Response Information

Resource Description

JournalEntryCommentModel
NameDescriptionTypeAdditional 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": "eba05091-bf0a-4cc6-b3a7-fbbae9ad8fe9",
  "JournalId": "220553e8-0474-4f77-bb5f-f3e1de1669f9",
  "VillageId": "ef4900a2-19b7-44b0-abea-e9646ce49199",
  "Comment": "sample string 4",
  "CreatedBy": "sample string 7",
  "CreatedById": "217046da-41e1-45f1-9eef-c1f487e51602",
  "Created": "2025-06-03T04:47:29.604+00:00",
  "Updated": "2025-06-03T04:47:29.604+00:00",
  "UpdatedById": "e14530f3-8d76-4878-ad2d-f02e41edaf0c",
  "UpdatedBy": "sample string 14",
  "Likes": [
    "bf30913d-ef27-4f72-a69c-c1432fbadb7b",
    "8acf51dc-1207-47c8-889d-c47303551559"
  ],
  "ParentCommentId": "fef32b24-25ca-4625-a5c3-ea941377bccc",
  "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>eba05091-bf0a-4cc6-b3a7-fbbae9ad8fe9</CommentId>
  <Created>2025-06-03T04:47:29.6043255+00:00</Created>
  <CreatedBy>sample string 7</CreatedBy>
  <CreatedByFirstName>sample string 5</CreatedByFirstName>
  <CreatedById>217046da-41e1-45f1-9eef-c1f487e51602</CreatedById>
  <CreatedByLastName>sample string 6</CreatedByLastName>
  <Deleted>true</Deleted>
  <JournalId>220553e8-0474-4f77-bb5f-f3e1de1669f9</JournalId>
  <Likes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>bf30913d-ef27-4f72-a69c-c1432fbadb7b</d2p1:guid>
    <d2p1:guid>8acf51dc-1207-47c8-889d-c47303551559</d2p1:guid>
  </Likes>
  <ParentCommentId>fef32b24-25ca-4625-a5c3-ea941377bccc</ParentCommentId>
  <Updated>2025-06-03T04:47:29.6043255+00:00</Updated>
  <UpdatedBy>sample string 14</UpdatedBy>
  <UpdatedByFirstName>sample string 12</UpdatedByFirstName>
  <UpdatedById>e14530f3-8d76-4878-ad2d-f02e41edaf0c</UpdatedById>
  <UpdatedByLastName>sample string 13</UpdatedByLastName>
  <VillageId>ef4900a2-19b7-44b0-abea-e9646ce49199</VillageId>
</JournalEntryCommentModel>