Skip to main content

Overview

useRevokeWorkspaceInvite returns a callable that marks a pending invitation revoked. Fires workspace.invite.revoked. Authorization: capability-gated. Requires the invite capability on the workspace (owners hold it implicitly) — the same gate as creating and listing invites.
The underlying route is a verb-suffixed POST /workspaces/:workspaceId/invites/:inviteId/revoke, not a DELETE. The hook handles this for you; it is worth knowing if you are comparing against the API reference.

Usage Example

Parameters

string
required
The workspace UUID.
string
required
The invitation UUID.

Returns

Promise<void>: resolves with nothing once the invite is revoked.

Error codes