867 B
867 B
DELETE /autoinvite/{id}
Protected. Requires a valid session cookie (credentials: 'include').
Delete auto-invitation
Deletes a pending auto-invitation of the selected company. Admin only.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
id |
yes | integer |
Signals
On success, emits SSE signal: autoinvite (see GET /events).
Response 204
Deleted
No content
Errors
| Status | Description |
|---|---|
| 400 | Invalid id or no company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Not authorized (admin of the selected company required) — {"error":"…"} |
| 404 | Invitation not found — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.