7 Replies Latest reply on May 30, 2013 7:32 AM by melling

    Rest v3 File upload to place - 403 forbidden

    conorh

      I am attempting to create a document with an attached file to a 'group' place that I created and I am getting a 403 forbidden. The exact same upload works fine if I change the visibility to hidden and remove the place. Is there anything I am doing wrong or is this a bug? Here is the query:

       

      Does not work:

           { "content":

             {

               "type": "text/html",

               "text": "<body><p>Another test2</p></body>"

             },

            "visiblity" : "place",

            "parent" : "https://myjivesite/api/core/v3/places/1150",

            "subject": "Another test2",

            "type": "document",

            "attachments": [ {

              "doUpload": true,

              "url": "https://mydomain.com/my_file.jpg"

            } ]

           }

       

      Does work:

       

           { "content":

             {

               "type": "text/html",

               "text": "<body><p>Another test2</p></body>"

             },

            "visiblity" : "hidden",

            "subject": "Another test2",

            "type": "document",

            "attachments": [ {

              "doUpload": true,

              "url": "https://mydomain.com/my_file.jpg"

            } ]

           }

       

       

      Thanks.

       

      Conor