18 Replies Latest reply on Mar 10, 2016 2:44 AM by umesh

    How to create a discussion using JIVE API3 REST services?

    ricardo.linero

      Hi again

       

      It is me now trying to create a discussion using JIVE API 3 REST services, LG . and Nils Heuer should know what i am talking about since they helped me a lot with API 2

       

      I am using the documentation from Jive REST API v3.0 → Discussion entity and as far as i can see and understand here is what i am doing.

       

      Sending a JSON message with this structure {"content":{"type":"text/html","text":"Some interesting text to discuss"},"subject":"New Discussion","type":"discussion"} to the URL http://icbf.uat65.hosted.jivesoftware.com/api/core/v3/contents,the only header i am adding besides the basic authentication is content-type=application/x-www-form-urlencoded  and right now i am receiving this response from the server:

       

      HTTP/1.1 415 Unsupported Media Type

      [Date: Thu, 13 Dec 2012 21:21:42 GMT, Server: Apache-Coyote/1.1, P3P: CP="CAO PSA OUR", X-JIVE-USER-ID: 2006, Content-Type: text/xml, Content-Length: 0, Expires: Thu, 13 Dec 2012 21:21:42 GMT, Vary: Accept-Encoding,User-Agent, Cache-Control: no-store, no-cache, must-revalidate, private, max-age=0, X-JSL: D=15657 t=1355433702130497, Set-Cookie: jive.user.loggedIn=true; Path=/;HttpOnly, Set-Cookie: jive.server.info="serverName=icbf.uat5.hosted.jivesoftware.com:serverPort=80:contextPath=:localName=localhost:localPort=9200:localAddr=127.0.0.1"; Version=1; Path=/;HttpOnly, Keep-Alive: timeout=5, max=100, Connection: Keep-Alive, Set-Cookie: BIGipServerm1s2c4-50-pool=728146442.20480.0000; path=/]


      Thanks again for your time and help