2 Replies Latest reply on Jan 26, 2016 5:49 AM by thundercat

    Is there a way to report messages within a discussion as abusive via REST API?

    thundercat

      Dear community,

       

      is there a way to to report discussion messages as abusive via REST API?

      I haven't found an appropriate endpoint at:

      Jive REST API v3.13 → Message service

       

      Best Regards,

      Mark

        • Re: Is there a way to report messages within a discussion as abusive via REST API?
          jbroman

          Hope this helps.

           

          To create an abuse report for a piece of content, POST to /api/core/v3/contents/123/abuseReports where "123" is the ID of the content. Note that the supported content types are:

               discussion (Discussion) - a discussion, which is the beginning of a conversation.

               document (Document) - a document in Jive that can be discussed and shared with other people.

               file (File) - a file in Jive that can be discussed and shared with other people.

               poll (Poll) - a poll where people can vote to make a decision or express an opinion.

               post (Post) - an entry in a blog.

               favorite (Favorite) - a link to content around the web that can be shared and discussed.

               task (Task) - a task for a person to get things done.

               update (Update) - a user status update.

           

          The JSON payload for the request would look like:

          {

               type: "abuseReport",

               message: "Content is not appropriate",

               category: "General Abuse"

          }

           

          With curl:

          curl -X POST -u USER -H "Content-Type: application/json" --data '{ type: "abuseReport", message: "Content is not appropriate", category: "General Abuse" }' http://example.jiveon.com/api/core/v3/contents/123/abuseReports

           

          Documentation:

          AbuseReport

          /contents