SSharaFormsDocs
Workspace Users

Cancel Workspace Invite

Delete an outstanding workspace invitation.

DELETE/open/workspaces/{workspaceId}/invites/{inviteId}/cancel

Delete an outstanding workspace invitation.

#Authentication & Scope

Requires workspace-users-write ability and admin privileges in the workspace.

#Request

http
DELETE /open/workspaces/{workspaceId}/invites/{inviteId}/cancel HTTP/1.1
Host: api.sharaforms.com
Authorization: Bearer <token>

#Path Parameters

ParameterTypeDescription
workspaceIdnumberID of the workspace.
inviteIdnumberID of the invite to cancel.

#Response

200 OK – Confirmation message.

json
{
  "message": "Invite deleted successfully."
}

Possible errors:

  • Invite not found for this workspace.
  • Invite already accepted.

Both are returned with status 400.

403 Forbidden – Token lacks workspace-users-write or insufficient privileges.