Revoke Current User

delete

/documents/api/1.1/shares/{folderId}/myuser

Delete the current user's access to a shared folder.

Request

Supported Media Types
  • application/json
  • application/xml
Path Parameters
folderId
Type: string
Required: true

Globally unique identifier (GUID) for the folder. If the referenced folder is the user's home folder, the value for folderId is self.

Response

Supported Media Types
  • application/json
  • application/xml
200 Response

The request was fulfilled.

Body
The response body includes information about the revoke user operation.
Root Schema : ShareDeleteUserResponse
The response body includes information about the revoke user operation.
Example application/json

{
    "id":"F1321DC48E3B123D02DBEE88T0000000000100000001",
    "type":"share",
    "errorCode":"0"
}
400 Response

Request parameters are not formatted correctly.

403 Response

Forbidden if the user does not have read permission.

404 Response

Folder ID is not found.

Examples

The following example removes access to the specified folder for the current user.

DELETE .../shares/F1321DC48E3B123D02DBEE88T0000000000100000001/myuser

Request Header

None.

Request Body

None.

HTTP Status Code

HTTP_STATUS = 200

JSON Response

{
    "errorCode": "0",
    "id": "F10CD743291B0B4B86366730T0000000000100000001",
    "type": "share"
}