Files
dashback/docs/api/routes/company/delete.md
2026-07-31 18:25:42 +02:00

32 lines
592 B
Markdown

# `DELETE /company/{id}`
Protected. Requires a valid session cookie (`credentials: 'include'`).
Delete company
Deletes a company.
## Path parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `id` | yes | integer | |
## Response `204`
Deleted
_No content_
## Errors
| Status | Description |
|--------|-------------|
| 400 | Invalid id — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
| 500 | Server error — `{"error":"…"}` |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._