How to create password share link via API
My param payload matches exactly as shown in your help docs here: https://writer.zohopublic.com/writer/published/ankqibdb934759c6446bca8899b2f426428fc
What is wrong and why am i getting this error?
//resource ID for file to be shared
resourceID = '6a3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
linkName = 'myTestLink';
expDate = today.addWeek(1);
param = Map();
param.put("resource_id",resourceID);
param.put("link_name",linkName);
param.put("request_user_data",false);
param.put("password_text","testPassword1");
param.put("allow_download",true);
param.put("expiration_date",expDate);
param.put("role_id","6");
attributesMap = Map();
attributesMap.put("attributes",param);
mapContainer = Map();
mapContainer.put("data",attributesMap);
attributesMap.put("type","links");
newParams = Map();
newParams.put("JSONString",mapContainer);
info newParams;
createLink = invokeurl
[
url :"https://workdrive.zoho.com/api/v1/links"
type :POST
parameters:newParams
connection:"zoho_workdrive_conx"
];
info createLink;
return "";
Here is response:
- {"JSONString":{"data":{"attributes":{"resource_id":"6a3XXXXXXXXXXXXXXXXXXXX","link_name":"myTestLink","request_user_data":false,"password_text":"testPassword1","allow_download":true,"expiration_date":"17-May-2021","role_id":"6"},"type":"links"}}}
- {"errors":[{"id":"F000","title":"JSON_PARSE_ERROR"}]}
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Ask the Experts: Five-hour live Q&A session with Zoho WorkDrive product experts
Hello all, We are excited to host the Ask the Experts session on July 18, 2024 between 2:00 PM – 7:00 PM IST. Whether you're just starting to use Zoho WorkDrive, or if you've been with us for a while, this session is an amazing opportunity to discuss
WorkDrive API Documentation
WorkDrive provides users and developers an extensive set of APIs to help integrate functionalities of Zoho WorkDrive with other Zoho applications and third-party tools. We have published the official WorkDrive API Documentation page for all external users.
March 15, 2023: Zoho Docs is discontinued
As of today (March 15, 2023) Zoho Docs is discontinued for all users. We would like to thank our customers for trusting us for so many years! Going forward, we're confident you'll enjoy using Zoho WorkDrive for all your advanced file management and collaboration
Support for auto-upgrade in TrueSync (for Windows)
WorkDrive TrueSync app now supports auto-upgrading to the latest version for Windows OS. You must manually download and install the TrueSync app version 3.4.0 to avail this feature. Download the latest TrueSync app for Windows (version 3.4.0) Supported
Introducing Collections
Create collection links to easily request any number of users to upload files to a particular folder. Once users upload their files, you will be able to view their submissions and manage their files effortlessly. Users don't need a WorkDrive account to
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.