904 B
904 B
POST /company/history
Protected. Requires a valid session cookie (credentials: 'include').
Add company history entry
Appends an entry to companyhistory for the selected company.
Body (JSON)
| Field | Required | Type | Description |
|---|---|---|---|
text |
yes | string | History entry text or note |
{
"text": "…"
}
Response 201
History entry created
{
"history": {
"id": 1,
"companyuserId": 1,
"date": "2026-08-10T00:00:00.000Z",
"text": "…"
}
}
Errors
| Status | Description |
|---|---|
| 400 | Text required or no company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Forbidden — {"error":"…"} |
| 500 | Server error — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.