Set folder permission through Content Server REST API

Options

hi all, i tried to set a folder permission through Content Server REST API, i tried all the existing endpoint to update permission for example :

/v2/nodes/{id}/permissions/owner

/v2/nodes/{id}/permissions/group

/v2/nodes/{id}/permissions/public

/v2/nodes/{id}/permissions/custom


but none seem to work and there's no error in postman return, can anyone help to advise why?

Tagged:

Comments

  • if one uses the SmartUI and bring up the same permission action one can understand the body part of the call. I would look at that and create a fake body parameter and put the requisite JSON String there .In other words for debugging REST API look at the pay load by doing F12 on the browser. The CS application is not a very modern thing so its payload is never pure JSON OT has said that time and again in Documentation that you want to pass information to the server as form-data .

    See IMPLEMENTATION_NOTES in the API

    Most of the starting developers who I presume are modern do not know this idiosyncracy hence go wrong.

    There are many screencaps in my blog that I put out to show why you have to submit your payload in a specific way.


    I would try it the same way SmartUI achieves the same.

  • userOT
    edited August 24, 2022 #3
    Options