This feature will allow the user to remove permissions from either the source or destination via the REST API. To do this, we can use the following DELETE calls to remove all, or some of the permissions as desired. This can be applied to both files and folders.
Files
This will delete all permissions on the specified file path as specified by the ID. No body is needed for this request
1 |
|
This will delete all permissions as specified by the file path (no ID as the call above). No body is needed for this request
1 |
|
This will delete permissions to a specified file path. Also requires request body
|
This will delete permissions to a specified file path. In order to successfully remove permissions, we need to provide a body that lists the desired permissions to be removed. This can be one or many. To obtain, you may change the DELETE above to GET, and copy/paste the response from there. Example request body below:
Request Body
1 |
|
Folders
Removing permissions from Folders is much the same as Files above. Those with /all do not require bodies. Calls pointing to a specific folder do, and follow the same pattern as Files.
This will delete all permissions on the specified file path as specified by the ID. No body is needed for this request
1 |
|
This will delete all permissions as specified by the folder path (no ID as the call above). No body is needed for this request
1 |
|
This will delete permissions to a specified folder path
|
In order to successfully remove permissions, we need to provide a body that lists the desired permissions to be removed. See the above Files call for instruction on how to obtain this information