decline_share
Decline a pending share offered to you. This deletes direct shares, hides group shares, and removes federated shares (except federated group shares).
Instructions
Decline a share offered to the current user that is waiting to be accepted.
Declining a share made directly to the user deletes it, so the owner has to share again to offer it again. A declined group share is only hidden from this user: Nextcloud keeps it in list_pending_shares (marked declined) and accept_share can still take it. A declined federated share is removed and the other server is told, except for a federated group share, which Nextcloud keeps offering (under a new id once the user had accepted it before).
Args: share_id: The pending share's id from list_pending_shares, as a string (federated share ids can be too long for a JSON number). federated: True for a federated share from another server (federated: true in list_pending_shares).
Returns: Confirmation message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share_id | Yes | ||
| federated | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |