Comments

Create a comment

Create a new comment for an entity (article, campaign, etc.).

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

Request body

contentobject required
content_htmlstring nullable required
is_internalboolean required

Whether this comment is internal (team only) or public

entity_typestring required

Type of entity being commented on (article, campaign, etc.)

entity_idstring uuid required

ID of the entity being commented on

parent_comment_idstring nullable

Example request

{
  "is_internal": true,
  "entity_type": "article",
  "entity_id": "123e4567-e89b-12d3-a456-426614174000"
}

Response

Comment created successfully

idstring required

Public comment reference.

contentunknown
content_htmlstring nullable required
parent_comment_idstring nullable required

Parent comment reference. Null for root comments.

is_internalboolean required

Whether this comment is internal (team only) or public

entity_typestring required

Type of entity being commented on (article, campaign, etc.)

entity_idstring uuid required

ID of the entity being commented on

team_idstring uuid required
user_idstring uuid nullable required

Presscart user author. Null for API-token comments with external authors.

Example response

{
  "id": "a7B9c2D4e6F8",
  "is_internal": true,
  "entity_type": "article",
  "entity_id": "123e4567-e89b-12d3-a456-426614174000",
  "team_id": "123e4567-e89b-12d3-a456-426614174000",
  "user_id": "123e4567-e89b-12d3-a456-426614174000"
}

Changes

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