Patch API v1 comment by ID
Changed onpatch/api/v1/comment/{id}
Request
- The document declares no server URL.
- Auth: HTTP bearer
Path parameters
idstring required
ID of comment to update
Example:550e8400-e29b-41d4-a716-446655440000
Request body
Example request
{
"$schema": "https://example.com/schemas/UpdateCommentBody.json",
"description": "This is a helpful thread"
}Response
OK
Example response
{
"$schema": "https://example.com/schemas/CommentResponse.json",
"description": "This is a helpful thread",
"has_replies": true,
"id": "550e8400-e29b-41d4-a716-446655440000",
"is_liked": true,
"is_verified_athlete": true,
"like_count": 20000,
"parent_comment_id": "550e8400-e29b-41d4-a716-446655440000",
"post_id": "550e8400-e29b-41d4-a716-446655440000",
"user": {
"bio": "My name is Suli and I'm a pro athlete",
"division": 1,
"email": "suli123@email.com",
"expected_grad_year": 2027,
"first_name": "Suli",
"last_name": "Suli",
"sport": "hockey",
"username": "suliproathelete",
"verified_athelete_status": "pending"
}
}Changes
- ○
added the optional property
/to the response with the status
- ○
- ▲
removed the required property
/from the response with the status
- ▲