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"
- ];
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.