/api/comment

POST /api/comment

Changed on

Create a new comment

post/api/comment

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

child_target_idstring nullable
contentobject required

Comment content must be valid JSON.

contextobject nullable

Comment context must be a valid JSON object.

parent_comment_idinteger nullable

value must be an integer greater than zero.

target_idinteger required

value must be an integer greater than zero.

target_type'document' | 'exploration' required

Response

Successful response

Changes

    • breaking

      removed subschema #1 subschema #2 from the request property oneOf list

    • breaking

      removed subschema #1 subschema #2 from the request property oneOf list

    • info

      added the new optional request property

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • info

      added the new exploration enum value to the request property

    • warning

      removed the request property