1 Reply Latest reply on Jun 5, 2014 9:03 AM by craig.mcclanahan

    Contents Service only show 'GET'

    robgalvin

      I have created a User Override for a user that has full control of a place, but still it only shows that 'content's ALLOWED is GET only. I am trying to create documents via the REST api. And yes, I am using Basic Authentication for that user to log in. We are using SSO for users and this user for REST was manually created using the System Admin and is set to not be federated. I cannot log into the site itself because of this to try from the actual website. and Vice versa, I can;t seem to get REST to work with federated users. Is there anything else I need to enable to allow CONTENTS -> POST/PUT

       

      api/core/v3/places/18095
      

       

      "resources" : {
        "contents" : {
        "ref" : "https://developer-uat.motorolasolutions.com/api/core/v3/contents?filter=place(https%3A%2F%2Fdeveloper-uat.motorolasolutions.com%2Fapi%2Fcore%2Fv3%2Fplaces%2F18095)",
        "allowed" : [ "GET" ]
        },
        "announcements" : {
        "ref" : "https://developer-uat.motorolasolutions.com/api/core/v3/places/18095/announcements",
        "allowed" : [ "GET", "POST" ]
        },
      

       

      Screen Shot 2014-06-05 at 11.27.38 AM.jpg

        • Re: Contents Service only show 'GET'

          The reason that only GET shows for a URI like /api/core/v3/places/{id}/contents is that this URI is only used for retrieving the contents in a place -- it is essentially a convenience endpoint that calls the content service with a filter on the parent place.  In order to create content in the place, you'll do a POST to the content service (POST /api/core/v3/contents) and include a "parent" field that contains the URI of the place in which you want the content to be stored.