Comments
Add a new comment
post/comments/add
Request
- Base URLhttps://dummyjson.com
- URLhttps://dummyjson.com/comments/add
- Authnone required
Query parameters
delayinteger
Artificial response delay in milliseconds (0–5000).
Request body
Example request
{
"body": "This makes all sense to me!",
"postId": 3,
"userId": 5
}Response
Created comment
Example response
{
"id": 1,
"body": "This is some awesome thinking!",
"postId": 242,
"likes": 3,
"user": {
"id": 105,
"username": "emmac",
"fullName": "Emma Wilson"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.