Articles

Update an article comment

Update the content of a public API-created article comment.

put/articles/{article_id}/comments/{comment_reference}

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/articles/{article_id}/comments/{comment_reference}
  • Auth: HTTP bearer

Path parameters

article_idstring uuid required
Example:13f35b06-de3d-4008-bf97-d467be969220
comment_referencestring required
Example:a7B9c2D4e6F8

Request body

contentstring required

Example request

{
  "content": "Updated comment text."
}

Response

Article comment updated successfully

idstring required

Public comment reference.

contentstring required
parent_comment_idstring nullable required

Parent comment reference. Null for root comments.

Example response

{
  "id": "a7B9c2D4e6F8",
  "content": "Can you clarify the requested change?",
  "author": {
    "name": "Jane Smith",
    "email": "jane@example.com"
  },
  "replies": [
    {
      "id": "a7B9c2D4e6F8",
      "content": "Can you clarify the requested change?",
      "author": {
        "name": "Jane Smith",
        "email": "jane@example.com"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.