Revoke Current User

delete

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

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

Request

Supported Media Types
Path Parameters
  • Globally unique identifier (GUID) for the folder. If the referenced folder is the user's home folder, the value for folderId is self.

Back to Top

Response

Supported Media Types

200 Response

The request was fulfilled.

Body ()
Root Schema : ShareDeleteUserResponse
Type: object
The response body includes information about the revoke user operation.
Show Source
Nested Schema : members
Type: array
Users or groups whose roles are revoked in the current request.
Show Source
Nested Schema : items
Type: object
Show Source
  • User or group diplay name.
  • User or group identifier as supplied in the request body's userID parameter.
  • Whether deleting this member was successful. (1) indicates success, (0) indicates failure.
  • Provisioning status for the user:

    • active: An active user that has been assigned an Oracle Content Management application role
    • inactive: A user that currently has no Content Management application roles assigned.
    • deleted: A user that no longer exists in the IAM/IDCS identity domain.
    • pending: An external user that was invited but does not exist in the IAM/IDCS identity domain yet.

    Not returned if the type is group.

  • Member type, has value user or group.
Example Response (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.

Back to Top

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"
}
Back to Top