2 Replies Latest reply on May 15, 2020 7:44 AM by twalker

    Post comment via api

    twalker Novice

      Hi All,


      I'm currently trying to post a comment to content via the api. Here's what I have so far but doesn't seem to be working - it gives an error of Unsupported Media Type.





         type: "POST",


         url: comment,


         data: {

         "content": {"type": "text/html", "text": "<body><p>This is Test comment</p></body>"},

         "type": "comment",



         processData: false, // tell jQuery not to process the data


         contentType: false,


         complete: function (data) {


         var s = data;