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/:id/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
{ success: boolean }.
Error codes
Related
useFetchWorkspaceInvites— list what there is to revokeuseResendWorkspaceInvite- Revoke Invite API

