Does The Sync Api Support Granting Access Request?


jinzhao

Recommended Posts

Hi,

 

I'm wondering whether I can call the API to grant access to a shared folder?

 

The API document says:

 

/AccessRequests

This 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

Link to comment
Share on other sites

@jinzhao

Actually, 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 call

PATCH /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 call

POST /folders/{fid}/link

set the parameter "askapproval" to "0" so request will be automatically approved by Sync itself.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.