Download OpenAPI specification:
The operations of the documents package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.
Document types, the documents of employees with their review and expiry, and document requests with an item per recipient.
Every employee reads the active types, named in their language; HR reads all of them with every field, inactive ones too, and may narrow the list with active. Sorted by name.
| active | boolean Only active ( |
| category | string (TypeCategory) Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other" What kind of document a type is; reports count permits by it. |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "WORK_PERMIT",
- "name": "string",
- "names": {
- "en": "string",
- "de": "string"
}, - "category": "identity",
- "dataCategory": "workData",
- "formats": [
- "pdf"
], - "maxMegabytes": 1,
- "expiryRule": "none",
- "reminderLeadDays": 0,
- "active": true
}
]
}HR only, as the data category of a type decides who reads its documents; an admin without HR receives 403. The code is unique in the company (code), the data category is not directory (dataCategory), the formats are a non-empty subset of the document formats.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| code required | string^[A-Z][A-Z0-9_]{1,39}$ |
required | object (LocalisedNames) The name per language; English is required, German optional, English is the fallback. |
| category required | string (TypeCategory) Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other" What kind of document a type is; reports count permits by it. |
| dataCategory required | string (DocumentDataCategory) Enum: "workData" "personal" "hrInternal" Who reads the documents of a type: |
| formats required | Array of strings (DocumentFormat) non-empty unique Items Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods" |
| maxMegabytes | integer [ 1 .. 25 ] Default: 10 |
| expiryRule required | string (ExpiryRule) Enum: "none" "optional" "required" Whether documents of the type have an expiry date - never, if known, or always. |
| reminderLeadDays | integer [ 0 .. 365 ] Default: 30 |
{- "code": "string",
- "names": {
- "en": "string",
- "de": "string"
}, - "category": "identity",
- "dataCategory": "workData",
- "formats": [
- "pdf"
], - "maxMegabytes": 10,
- "expiryRule": "none",
- "reminderLeadDays": 30
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "WORK_PERMIT",
- "name": "string",
- "names": {
- "en": "string",
- "de": "string"
}, - "category": "identity",
- "dataCategory": "workData",
- "formats": [
- "pdf"
], - "maxMegabytes": 1,
- "expiryRule": "none",
- "reminderLeadDays": 0,
- "active": true
}An inactive type is HR's alone to read; to anybody else it does not exist.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "WORK_PERMIT",
- "name": "string",
- "names": {
- "en": "string",
- "de": "string"
}, - "category": "identity",
- "dataCategory": "workData",
- "formats": [
- "pdf"
], - "maxMegabytes": 1,
- "expiryRule": "none",
- "reminderLeadDays": 0,
- "active": true
}Narrower formats or a smaller size apply to new uploads only; stored documents stay valid. A changed data category decides at once who reads every document of the type, and the change history records the old and the new category. active: false takes the type out of new documents and requests.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
object (LocalisedNames) The name per language; English is required, German optional, English is the fallback. | |
| category | string (TypeCategory) Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other" What kind of document a type is; reports count permits by it. |
| dataCategory | string (DocumentDataCategory) Enum: "workData" "personal" "hrInternal" Who reads the documents of a type: |
| formats | Array of strings (DocumentFormat) non-empty unique Items Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods" |
| maxMegabytes | integer [ 1 .. 25 ] |
| expiryRule | string (ExpiryRule) Enum: "none" "optional" "required" Whether documents of the type have an expiry date - never, if known, or always. |
| reminderLeadDays | integer [ 0 .. 365 ] |
| active | boolean |
{- "names": {
- "en": "string",
- "de": "string"
}, - "category": "identity",
- "dataCategory": "workData",
- "formats": [
- "pdf"
], - "maxMegabytes": 1,
- "expiryRule": "none",
- "reminderLeadDays": 0,
- "active": true
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "WORK_PERMIT",
- "name": "string",
- "names": {
- "en": "string",
- "de": "string"
}, - "category": "identity",
- "dataCategory": "workData",
- "formats": [
- "pdf"
], - "maxMegabytes": 1,
- "expiryRule": "none",
- "reminderLeadDays": 0,
- "active": true
}A type with documents or requests answers 409; deactivate it with active: false instead.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Records a document from an upload of the purpose documents.employeeDocument (fileId) with an active type. HR records every type for every employee, a manager in scope types of work data for their reports, an employee types of work data and personal data for themselves; another type is refused on typeId. The file must fit the type's formats and size (fileId), the expiry date its expiry rule and lie after the issue date (expiryDate). A document the employee records waits for its review (pendingReview) in an approval (approvalId): of subject type workDocument for work data, personalDocument, decided by HR alone, for personal data. When nobody may decide it, the response is 422 with the code noEligibleApprover and nothing is recorded. One HR or a manager records is verified at once. An employee the caller may not see answers 404 and nothing is recorded.
| employeeId required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| fileId required | string <uuid> (Uuid) An upload of the caller with the purpose |
| typeId required | string <uuid> (Uuid) |
| title | string or null <= 200 characters Free text, not translated; without it (or empty) the type's English name. |
Date (string) or null | |
Date (string) or null | |
| reminderLeadDays | integer or null [ 0 .. 365 ] Without it the type's lead time. |
| note | string or null <= 2000 characters |
| digitalAsset | boolean Default: false Only where the assets package is installed (422 otherwise). |
{- "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "typeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "title": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "reminderLeadDays": 0,
- "note": "string",
- "digitalAsset": false
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "title": "string",
- "status": "pendingReview",
- "rejectionReason": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "expired": true,
- "daysUntilExpiry": 0,
- "reminderLeadDays": 0,
- "note": "string",
- "digitalAsset": true,
- "file": {
- "fileName": "string",
- "format": "pdf",
- "sizeBytes": 1,
- "contentUrl": "../dictionary"
}, - "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "origin": "user",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}The documents of the caller (scope=self), of their reports (team, work data only) or of the company (company, HR only; an admin without HR receives 403). With employeeId and without scope, the documents of that employee the caller may read by the data categories they read of them, as the profile shows them; 404 for an employee the caller may not see. Every filter, count and sort applies only to what the caller may read, so meta.totalItems counts every match the caller sees and nothing else; an HR-internal document is never listed for its employee. Any other query parameter answers 400.
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" Visibility scope of a collection request; the caller only ever receives what they may see. |
| employeeId | string <uuid> (Uuid) Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Only this employee, who must be in the scope (404 otherwise). |
| typeId | string <uuid> (Uuid) Examples: typeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| typeCategory | string (TypeCategory) Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other" What kind of document a type is; reports count permits by it. |
| status | string (DocumentStatus) Enum: "pendingReview" "verified" "rejected" Waiting for its review, checked, or turned down with a reason. |
| expired | boolean Only expired ( |
| expiresBefore | string <date> (Date) Examples: expiresBefore=2026-10-01 Only documents expiring before this day. |
| requestId | string <uuid> (Uuid) Examples: requestId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Only documents submitted for this document request. |
| search | string <= 100 characters Words in the title or the employee's name. |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| sort | string Examples: sort=-expiryDate
|
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "title": "string",
- "status": "pendingReview",
- "rejectionReason": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "expired": true,
- "daysUntilExpiry": 0,
- "reminderLeadDays": 0,
- "note": "string",
- "digitalAsset": true,
- "file": {
- "fileName": "string",
- "format": "pdf",
- "sizeBytes": 1,
- "contentUrl": "../dictionary"
}, - "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "origin": "user",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Readable by whoever may read the data category of its type of its employee, at the time of reading, and by the approvers of its review. A colleague, a manager out of scope and an admin without HR receive 404.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "title": "string",
- "status": "pendingReview",
- "rejectionReason": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "expired": true,
- "daysUntilExpiry": 0,
- "reminderLeadDays": 0,
- "note": "string",
- "digitalAsset": true,
- "file": {
- "fileName": "string",
- "format": "pdf",
- "sizeBytes": 1,
- "contentUrl": "../dictionary"
}, - "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "origin": "user",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}HR changes every document, a manager in scope documents of work data of their reports, the employee their own documents while they wait for their review or were rejected (403 once verified). A new file or another type of the employee's own document withdraws its running approval and sends it to its review again under a new one that supersedes it. The status is never written: a body with status answers 400; approvers decide through the approval.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| fileId | string <uuid> (Uuid) |
| typeId | string <uuid> (Uuid) |
| title | string [ 1 .. 200 ] characters |
Date (string) or null | |
Date (string) or null | |
| reminderLeadDays | integer [ 0 .. 365 ] |
| note | string or null <= 2000 characters |
| digitalAsset | boolean |
{- "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "typeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "title": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "reminderLeadDays": 0,
- "note": "string",
- "digitalAsset": true
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "title": "string",
- "status": "pendingReview",
- "rejectionReason": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "expired": true,
- "daysUntilExpiry": 0,
- "reminderLeadDays": 0,
- "note": "string",
- "digitalAsset": true,
- "file": {
- "fileName": "string",
- "format": "pdf",
- "sizeBytes": 1,
- "contentUrl": "../dictionary"
}, - "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "origin": "user",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}HR deletes every document; the employee their own while it waits for its review or was rejected and is not the current submission of a request item (403 otherwise). A running review is withdrawn; the file goes once the deletion committed, and the change history records type, title and file name.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}The file of a document the caller may read, delivered by the file storage like every stored file: streamed, with one byte range as 206, inline for PDF and images only. A preview loads this address, never the content as a data address. Reads by anybody but the employee are logged.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| disposition | string Default: "attachment" Enum: "attachment" "inline"
|
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Range | string^bytes=\d*-\d*$ One byte range ( |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Creates a request for a document of an active type from 1 to 500 distinct employees of the company (recipientIds), with an optional description (free text, not translated), formats that narrow the type's and a maximum size below the type's. Every recipient gets an open item and the notification document.requested in their language. HR asks every employee for documents of work data and personal data; a manager asks the employees in their scope for documents of work data only, and a recipient out of scope is refused on recipientIds[n]. HR-internal types are never requested (typeId). An employee who manages nobody and is not HR receives 403.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| typeId required | string <uuid> (Uuid) |
| recipientIds required | Array of strings <uuid> (Uuid) [ 1 .. 500 ] items unique [ items <uuid > ] |
| description | string or null <= 2000 characters Free text, not translated. |
| formats | Array of strings or null (DocumentFormat) non-empty Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods" Narrows the type's formats; a format the type does not accept is refused. |
| maxBytes | integer or null >= 1 At most the type's maximum size. |
{- "typeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "recipientIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 1
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 0,
- "createdBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recipientIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "counts": {
- "open": 0,
- "submitted": 0,
- "fulfilled": 0,
- "cancelled": 0,
- "total": 0
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}HR lists every request of the company; anybody else the requests they created, those with items of employees in their scope and those addressing themselves. The counts per item status cover only the items the caller may read: every item for HR and the requester, those of the reports for a manager, the own one for a recipient. Newest first. Any other query parameter answers 400.
| typeId | string <uuid> (Uuid) Examples: typeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 0,
- "createdBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recipientIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "counts": {
- "open": 0,
- "submitted": 0,
- "fulfilled": 0,
- "cancelled": 0,
- "total": 0
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Readable by HR, by its requester, by a manager with reports among its recipients and by a recipient, with the counts of the items the caller may read; a recipient never learns about the others. Anybody else receives 404.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 0,
- "createdBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recipientIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "counts": {
- "open": 0,
- "submitted": 0,
- "fulfilled": 0,
- "cancelled": 0,
- "total": 0
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}The requester or HR changes the description, the formats, the maximum size and the recipients; recipientIds is the complete new list, under the rules of creating a request. Changed formats and size apply to items still open. An added recipient gets an open item and document.requested; a removed recipient's open item is cancelled with document.requestCancelled, while an item with a submitted or checked document stays as it is. Others who may read the request receive 403.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| recipientIds | Array of strings <uuid> (Uuid) [ 1 .. 500 ] items unique [ items <uuid > ] |
| description | string or null <= 2000 characters |
| formats | Array of strings or null (DocumentFormat) non-empty Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods" |
| maxBytes | integer or null >= 1 |
{- "recipientIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 1
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 0,
- "createdBy": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "recipientIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "counts": {
- "open": 0,
- "submitted": 0,
- "fulfilled": 0,
- "cancelled": 0,
- "total": 0
}, - "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}The requester or HR closes the request: every open item is cancelled with document.requestCancelled and the request is removed. Documents submitted or checked for it stay as documents of their employees, and the change history keeps the request with its type and description.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}The caller's own items (scope=self), the items of their reports and of the requests they created (team) or every item of the company (company, HR only; others receive 403). Filters, search and meta.totalItems cover only what the caller may read. Any other query parameter answers 400.
| scope | string (ListScope) Default: "self" Enum: "self" "team" "company" Visibility scope of a collection request; the caller only ever receives what they may see. |
| requestId | string <uuid> (Uuid) Examples: requestId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| status | string (RequestItemStatus) Enum: "open" "submitted" "fulfilled" "cancelled"
|
| employeeId | string <uuid> (Uuid) Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| typeId | string <uuid> (Uuid) Examples: typeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| search | string <= 100 characters Words in the employee's name or the type's name in the caller's language. |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 0,
- "status": "open",
- "document": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pendingReview"
}, - "lastRejectionReason": "string",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Records a document of the request's type for the item's employee from an upload of the purpose documents.employeeDocument (fileId), whose content must fit the request's formats and size, with issue and expiry dates as the type demands. The recipient's own submission makes the item submitted and sends the document to its review; its approval makes the item fulfilled, its rejection open again with the reason. HR, and a manager in scope for work data, submit on the recipient's behalf, which records a checked document and fulfils the item at once. A cancelled or fulfilled item, or one waiting for its review, answers 409 and the upload stays unlinked. Somebody else's item answers 404.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| fileId required | string <uuid> (Uuid) An upload of the caller with the purpose |
| title | string or null <= 200 characters Free text; without it (or empty) the type's name. |
Date (string) or null | |
Date (string) or null | |
| note | string or null <= 2000 characters |
{- "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "title": "string",
- "issueDate": "2026-10-01",
- "expiryDate": "2026-10-01",
- "note": "string"
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "requestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "description": "string",
- "formats": [
- "pdf"
], - "maxBytes": 0,
- "status": "open",
- "document": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pendingReview"
}, - "lastRejectionReason": "string",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00",
- "allowedActions": [
- "withdrawLeaveRequest"
]
}The documents not yet expired whose expiry date lies within the next 30 days in the company's time zone, the soonest first and at most ten: of the work data of the caller's reports (scope=team, the default) or, for HR, of the company (scope=company; others receive 403). An employee without reports who is not HR receives 403.
| scope | string Default: "team" Enum: "team" "company" |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "title": "string",
- "employee": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}, - "type": {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "code": "string",
- "name": "string",
- "category": "identity",
- "dataCategory": "workData"
}, - "expiryDate": "2026-10-01",
- "daysUntilExpiry": 0
}
]
}