# Create file upload

Creates a new File Upload record. File Upload resource in the Animal Health Data Store

Endpoint: POST /site/{siteId}/ahds/v1/file-upload
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

## Request fields (application/json):

  - `contentType` (string, required)
    MIME type of the uploaded file (e.g., 'application/pdf', 'image/jpeg').
    Example: example

  - `extensions` (object)
    Vendor- or practice-specific extensions.

  - `fileName` (string, required)
    Original file name as provided by the client or system.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `fileUploadId` (string)
    Canonical identifier for this file upload.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `notes` (string)
    Optional notes or description associated with the file.
    Example: Example description

  - `sizeBytes` (number, required)
    Size of the uploaded file in bytes.
    Example: 1.23

## Response 201:

  - `201` (unknown)
    File Upload created successfully

## Response 201 fields (application/json):

  - `contentType` (string, required)
    MIME type of the uploaded file (e.g., 'application/pdf', 'image/jpeg').
    Example: example

  - `createdAt` (string, required)
    Timestamp when the file was created/uploaded in the system.
    Example: 2025-01-01T00:00:00.000Z

  - `extensions` (object, required)
    Vendor- or practice-specific extensions.

  - `fileName` (string, required)
    Original file name as provided by the client or system.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `fileUploadId` (string, required)
    Canonical identifier for this file upload.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `notes` (string, required)
    Optional notes or description associated with the file.
    Example: Example description

  - `sizeBytes` (number, required)
    Size of the uploaded file in bytes.
    Example: 1.23

  - `updatedAt` (string, required)
    Timestamp when the file metadata was last updated.
    Example: 2025-01-01T00:00:00.000Z

## Response 400:

  - `400` (unknown)
    Invalid request body

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 409:

  - `409` (unknown)
    File Upload with this ID already exists

