Sign in to follow this  
jinzhao

Does The Sync Api Support Granting Access Request?

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this