# `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`](../events.md)). ## 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`._