Json api create comments
It follows the same pattern in the POST request with relationships section of the docs you linked to.


Your endpoint will be /jsonapi/comment/$MY_COMMENT_TYPE.
Your data payload will need to contain both the data property (the  comment's properties) and relationships property (which will contain the comment's author &amp; the entity reference commented on). To get a more concrete example of your data payload, perform a GET /jsonapi/comment/$MY_COMMENT_TYPE to see examples of existing comments.