Articles

Create an article comment

Create a public root article comment for an API-token team.

post/articles/{article_id}/comments

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
  • Auth: HTTP bearer

Path parameters

article_idstring uuid required
Example:e1238dc9-95dc-46ce-bf1b-b75bc531f868

Request body

contentstring required
parent_comment_idstring nullable

Optional parent comment reference for one-level replies.

Example request

{
  "content": "Can you clarify the requested change?",
  "parent_comment_id": "a7B9c2D4e6F8",
  "author": {
    "name": "Jane Smith",
    "email": "jane@example.com",
    "external_id": "customer-user-123"
  }
}

Response

Article comment created 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 3 revisions of this API.