PUT
api/v1/comments/{commentID}

Edits an existing comment.

Request

URL Parameters

Name (Data Type)Description
commentID: integer

The ID of the comment in which to edit.

Additional information

  • Required

Body Parameters

The new value of the comment

UserValue
Name (Data Type)Description
value: string

Content of request

Additional information

  • Required

Request Formats

application/json

Sample:
{
  "value": "sample string 1"
}

Response

ApiDataResponseOfComment
Name (Data Type)Description
data: Comment

success: boolean

version: string

error: ErrorInfo

Response Formats

application/json

Sample:
{
  "success": true,
  "data": {
    "childCount": 34,
    "content": "Oh, so you just think you know EVERYTHING!?  Edit: Thanks for all the DOWNVOATS ppl!! REAL nice.",
    "creationDate": "2017-06-22T12:14:57.8793494Z",
    "formattedContent": null,
    "id": 2342346,
    "isAnonymized": false,
    "isCollapsed": false,
    "isDeleted": false,
    "isSaved": null,
    "isDistinguished": false,
    "isOwner": false,
    "isSubmitter": false,
    "lastEditDate": "2017-06-25T12:14:57.8793494Z",
    "parentID": 2342246,
    "submissionID": 62325,
    "subverse": null,
    "userName": "MrCAPlocksUSER",
    "vote": null,
    "sum": -3421,
    "upCount": 32,
    "downCount": 3453,
    "children": {
      "endingIndex": -1,
      "segmentCount": 0,
      "startingIndex": -1,
      "sort": 0,
      "hasMore": false,
      "remainingCount": 0,
      "totalCount": 0,
      "comments": []
    }
  },
  "version": "1.1.6291.19775"
}