Comments

Update a comment

put/comments/{id}

Request

  • Base URL
    https://dummyjson.com
  • URL
    https://dummyjson.com/comments/{id}
  • Auth
    none required

Path parameters

idinteger required

Resource id.

Query parameters

delayinteger

Artificial response delay in milliseconds (0–5000).

Request body

bodystring
postIdinteger
userIdinteger

Example request

{
  "body": "This makes all sense to me!",
  "postId": 3,
  "userId": 5
}

Response

Updated comment

idinteger
bodystring
postIdinteger
likesinteger

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.