# Create file Creates a new File record. File resource in the Animal Health Data Store Endpoint: POST /site/{siteId}/ahds/v1/file Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier ## Request fields (application/json): - `downloadUrl` (string) URL that can be used to download the file content. - `extensions` (object) Vendor- or practice-specific extensions. - `fileId` (string, required) Canonical identifier for the file. Example: "123e4567-e89b-12d3-a456-426614174000" - `isActive` (boolean, required) Whether the file is active and available for use. - `mimeType` (string, required) MIME type of the file, e.g. 'application/pdf'. - `name` (string, required) Human-readable file name, typically including extension. - `notes` (string) Free-text notes about the file. - `sizeBytes` (number, required) Size of the file in bytes. ## Response 201 fields (application/json): - `createdAt` (string, required) Timestamp when the file record was created. Example: "2025-01-01T00:00:00.000Z" - `downloadUrl` (string, required) URL that can be used to download the file content. - `extensions` (object, required) Vendor- or practice-specific extensions. - `fileId` (string, required) Canonical identifier for the file. Example: "123e4567-e89b-12d3-a456-426614174000" - `isActive` (boolean, required) Whether the file is active and available for use. - `mimeType` (string, required) MIME type of the file, e.g. 'application/pdf'. - `name` (string, required) Human-readable file name, typically including extension. - `notes` (string, required) Free-text notes about the file. - `sizeBytes` (number, required) Size of the file in bytes. - `updatedAt` (string, required) Timestamp when the file record was last modified. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 409 fields