# Update file upload

Partially updates an existing File Upload. Only provided fields will be updated.

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

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `fileUploadId` (string, required)
    File Upload unique identifier (UUID)

## Request fields (application/json):

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

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

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

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

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

## Response 200:

  - `200` (unknown)
    File Upload updated successfully

## Response 200 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 404:

  - `404` (unknown)
    File Upload not found

