What is syntax to change external link permissions from Edit to View?
I need to change permissions on an external share link from Edit to View.
Here is my code to create the external share link with edit rights.
How to modify it to change to view-only rights?
- // Create External Share Link
- mp = Map();
- mp.put("Accept","application/vnd.api+json");
- //Parameters Map
- externalLinkMap = Map();
- externalLinkMap.put("resource_id",resource_id);
- externalLinkMap.put("link_name","link");
- externalLinkMap.put("request_user_data",false);
- externalLinkMap.put("allow_download",false);
- // Give editor access
- externalLinkMap.put("role_id","5");
- attributesMap = {"attributes":externalLinkMap,"type":"links"};
- dataMap = Map();
- dataMap.put("data",attributesMap);
- createExternalLink = invokeurl
- [
- url :"https://workdrive.zoho.com/api/v1/links"
- type :POST
- parameters:dataMap.toString()
- headers:mp
- connection:"workdrive_all"
- ];
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.