DELETE
/
open
/
workspaces
/
{workspaceId}
/
invites
/
{inviteId}
/
cancel
curl --request DELETE \
  --url https://api.opnform.com/open/workspaces/{workspaceId}/invites/{inviteId}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "message": "Invite deleted successfully."
}

Cancel Workspace Invite

Delete an outstanding workspace invitation.

Authentication & Scope

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

Request

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

Path Parameters

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

Response

200 OK – Confirmation message.

{
  "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.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

workspaceId
string
required
inviteId
string
required

Response

200
application/json

Invite canceled

The response is of type object.