jinzhao Posted November 2, 2015 Report Share Posted November 2, 2015 Hi, I'm wondering whether I can call the API to grant access to a shared folder? The API document says: /AccessRequestsThis is the path to get and grant access for requests from other users. But there's only support for get method for this end point. Is this something not implemented yet? I want to develop an app that users can directly share folders to other users, and the access from other users will be automatically granted. Thanks Quote Link to comment Share on other sites More sharing options...
RomanZ Posted November 5, 2015 Report Share Posted November 5, 2015 @jinzhaoActually, there is a way to approve requests. Once you called GET method and have all access requests parameters, get the fingerprint (will be referred as {ufp} below) from one you are interested in and callPATCH /folders/{fid}/AccessRequets/{ufp}/and specify "status" in JSON to necessary access level (see the /folders/{fid}/AccessRequets/{ufp}/ section of documentation for more info). Though note, that there is more simple way. When generating the link with API callPOST /folders/{fid}/linkset the parameter "askapproval" to "0" so request will be automatically approved by Sync itself. Quote Link to comment Share on other sites More sharing options...
jinzhao Posted November 6, 2015 Author Report Share Posted November 6, 2015 @RomanZThat is awsome!I'll try it out soon. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.