Set folder permission through Content Server REST API
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?
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.
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 104 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax