# Upload document associated with a crew qualification Uploads a document file to be associated with a crew qualification. Features: - Supports various document formats - Associates the document with the specific qualification - Returns document metadata including UUID for future access Example Use Case: An operations manager needs to upload a scanned copy of a pilot's license or certificate to maintain digital records for compliance and verification. For more information on managing crew qualifications, see the Crew Qualification Management Guide. Endpoint: POST /api/v2/external/crew-qualifications/{crewQualificationId}/documents Version: 2.4.0 Security: X-Api-Client-Id, X-Auth-Token ## Path parameters: - `crewQualificationId` (string, required) The unique identifier of the crew qualification Example: "qual-12345" ## Request fields (multipart/form-data): - `file` (string, required) The document file to upload ## Response 200 fields (application/json): - `id` (integer) Unique identifier for the document Example: 12345 - `uuid` (string) Unique identifier for the document file Example: "doc-uuid-67890" - `originalName` (string) Original filename of the uploaded document Example: "pilot_license.pdf" - `fileSize` (integer) Size of the document file in bytes Example: 1024000 - `creationDate` (string) Date and time when the document was uploaded Example: "2024-01-15T10:30:00.000Z" - `customName` (string) Custom name assigned to the document Example: "Captain License" - `imageSizeX` (integer) Width of the image in pixels (if applicable) Example: 1920 - `imageSizeY` (integer) Height of the image in pixels (if applicable) Example: 1080 - `isThumbnail` (boolean) Whether this is a thumbnail version of the document ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields