3 Replies Latest reply on Jan 5, 2017 12:47 AM by pushpendra.paliwal

    Create discussion using REST api..getting 403

    nrajesh

      Hi,

           Am having few communities in my application for discussions. From my application using REST api am creating, updating and fetching discussion without any issues. But few communities i can not create the discussion, it throw the 403 error like below even i mentioned parent place also. Through Rest client i can create the same discussion.

       

      {

        "error" : {

          "status" : 403,

          "message" : "This content type is not allowed in this place or you do not have permissions to create this content"

        }

      }

       

       

      The sample JSON:

      {

          "type":"discussion",

          "question":true,

          "parent":"https://abc.com/api/core/v3/places/123456",

          "subject":"Test Discussion",

          "via":{

                  "displayName":"Through Application"

                  },

          "content":{

                      "type":"text\/html",

                      "text":"Test Discussion Content"

                      }

      }

       

      Any help here is appreciated.

       

      Thanks,

      Rajesh