---
title: "Create a file upload"
method: POST
path: "/scans/{scanId}/files"
tags: ["Scans"]
---

# Create a file upload

`POST /scans/{scanId}/files`

Upload a file for a specific scan.

## Path parameters

- `scanId` string, required

## Response `200`

OK

- Scan
  - `id` string
  - `force` boolean
  - `resubmit_files` boolean
  - `mimetype_filtering` boolean
  - `date` string, date-time
  - `status` integer
  - `probes_total` integer
  - `probes_finished` integer
  - `results` SummaryScanResult[]
    - `status` integer
    - `probes_finished` integer
    - `probes_total` integer
    - `scan_id` string
    - `scan_date` string, date-time
    - `name` string
    - `file_sha256` string
    - `parent_file_sha256` string
    - `path` string
    - `result_id` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.dev/quarkslab/apis/irma-api.md) · [All operations](https://skmtc.dev/quarkslab/apis/irma-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quarkslab/irma-api/revisions/1e1006c1389c/schema)
