list_pending_shares
List shares awaiting your acceptance, covering local and federated shares, so you can decide to accept or decline.
Instructions
List shares other users offered the current user that are waiting to be accepted.
Shares from users on this server wait here when the user turned off accepting shares automatically (a personal sharing setting) or the admin made accepting them necessary; federated shares from other servers wait here unless they come from a trusted server, whose shares are accepted automatically by default. Accept one with accept_share or decline it with decline_share, passing its id and "federated".
Returns: JSON list of pending shares: id, federated, share_type, path (the item's name), item_type, mimetype (both unknown for federated shares until accepted), uid_owner (the sharer; for federated shares a user on the "remote" server), plus for shares from this server displayname_owner, share_with (a group for group shares), expiration, note, label and declined. Nextcloud keeps offering a group share the user declined, so it stays on this list with declined: true; accept_share still accepts it. A declined federated group share also stays here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |