Update a comment
Update an existing comment to correct or revise it
Path parameters
Unique identifier of the post
Unique identifier of the comment
Request body
Example request
{
"username": "jane_smith",
"content": "Great photo! Where was this taken? The scenery looks amazing!"
}Response
Comment updated successfully
Example response
{
"id": "987fcdeb-51a2-43d1-9f6b-123456789abc",
"postId": "123e4567-e89b-12d3-a456-426614174000",
"username": "jane_smith",
"content": "Great photo! Where was this taken?",
"createdAt": "2025-06-01T11:15:00Z",
"updatedAt": "2025-06-01T11:15:00Z"
}Changes
Changed in 3 of the 3 revisions of this API.2178
- ▲
added the new path request parameter
commentIdnew-request-path-parameter
- ▲
added the new path request parameter
postIdnew-request-path-parameter
- ▲
the
response property's maxLength was increased from500to1000for the response statusresponse-property-max-length-increased
- ▲
the
response's property type changed fromobjecttoarrayfor statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjecttoarrayfor statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjecttoarrayfor statusresponse-property-type-changed
- ○
the
request property's maxLength was increased from500to1000request-property-max-length-increased
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new required request property
new-required-request-property
- ▲
the
request property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
response's property type changed fromintegertostring, and format from no format touuidfor statusresponse-property-type-changed
- ▲
the
response's property type changed fromintegertostring, and format from no format touuidfor statusresponse-property-type-changed
- ●
deleted the
pathrequest parametercommentIdrequest-parameter-removed
- ●
deleted the
pathrequest parameterpostIdrequest-parameter-removed
- ●
the
request property's maxLength was set to500request-property-max-length-set
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ▲
- ▲
for the
pathrequest parametercommentId, the type changed fromstringtointeger, and format fromuuidto no formatrequest-parameter-type-changed
- ▲
for the
pathrequest parameterpostId, the type changed fromstringtointeger, and format fromuuidto no formatrequest-parameter-type-changed
- ▲
the
response property's maxLength was unset from1000for the response statusresponse-property-max-length-unset
- ▲
the
response property's maxLength was unset from50for the response statusresponse-property-max-length-unset
- ▲
the
response property's minLength was decreased from1to0for the response statusresponse-property-min-length-decreased
- ▲
the
response property's minLength was decreased from1to0for the response statusresponse-property-min-length-decreased
- ▲
the
response's property type changed fromstringtointeger, and format fromuuidto no format for statusresponse-property-type-changed
- ▲
the
response's property type changed fromstringtointeger, and format fromuuidto no format for statusresponse-property-type-changed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ○
the
request property's minLength was decreased from1to0request-property-min-length-decreased
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲