TwentyThree Developer APIAPI Method: /api/comment/promote

API Method: /api/comment/promote

Last updated on July 16, 2014.

Promote or unpromote a comment

Parameters

ParameterDescription
comment_id (required) Identifier of the comment to be promoted or unpromoted.
promoted_p Set promotion status to 1 or 0. Default is true.

Permission level

The minimum required permission level is:

write

Example XML Response

<response status="ok" permission_level="write" 
  message="The comment promotion status was updated" cached="0"/>

Example JSON Response

{
  "status": "ok", 
  "message":"The comment promotion status was updated",
  "permission_level":"write",
  "cached":"0",
  "p": "1",
  "size": "1",
  "site": { ... },
  "endpoint": "/api/comment/promote"
}