Requires authentication
Endpoint
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL to document file |
type | string | Yes | Document type (NATIONAL, LICENSE, PASSPORT, RESIDENCE, OTHER) |
expiryDate | string | Yes | Document expiry date (ISO string) |
issuedBy | string | Yes | Issuing authority |
adminId | UUID | No | Link document to an admin (required if userId not provided) |
userId | UUID | No | Link document to a resident user (required if adminId not provided) |