Invitations · revokeInvitation
Revoke an invitation
DELETE /v1/workspaces/{id}/invitations/{invitationId}
Owners only. The link stops working.
- Who may call it
- humans: Owners and up
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The workspace's id (wsp_…). The request acts in this workspace (the Logu-Workspace header is ignored). · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6 |
invitationId | path | string | required | The invitation's id (inv_…). · e.g. inv_01K7DB4D6F8H0K2M4P6R8T0V2X |
Example#
curl -s -X DELETE "https://api.logu.dev/v1/workspaces/wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6/invitations/inv_01K7DB4D6F8H0K2M4P6R8T0V2X" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
204
Revoked.
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 409 | conflict | The resource isn't in a state that allows this: an ask that is no longer waiting (ask has its current state), an invitation no longer pending, the last Owner. |
| 500 | internal_error | Something went wrong on Logu's side. |