---
title: "Upload CSV"
method: POST
path: "/v2/vulnerability/scan-groups/{scan-group-id}/upload"
tags: ["Vulnerability Management"]
---

# Upload CSV

`POST /v2/vulnerability/scan-groups/{scan-group-id}/upload`

## Request

- Base URL: `https://app.ninjarmm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ninjarmm.com/v2/vulnerability/scan-groups/{scan-group-id}/upload`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionKey`
- TypeScript: <https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/docs/v2/vulnerability/scan-groups/:scan-group-id/upload/post.ts> (a function with typed inputs; its response is checked against the schema)

Upload CSV to an existing scan group. The uploaded CSV must contain the columns defined in the 
scan group which map to the Ninja machine identifier (hostname, IP address, or MAC address) and the CVE ID.

## Path parameters

- `scan-group-id` integer, required

## Request body `multipart/form-data`

- object
  - `csv` string, binary, required: The CSV file containing vulnerability data. The maximum file size is 200MB.

## Response `200`

Upload was accepted and is being processed

- object
  - `id` integer
  - `groupName` string
  - `fileName` string
  - `status` 'COMPLETE' | 'IN_PROGRESS' | 'FAILED'
  - `vendor` string
  - `thirdPartyApiTile` string
  - `deviceIdHeader` string
  - `deviceInternalMapping` string
  - `cveIdHeader` string
  - `lastFileUploadDate` string
  - `recordsProcessed` integer

## Other responses

- `404`: Scan group was not found by the given scan-group-id

## Changes

- **2025-12-12** `7c00bdd989ee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/changes/v2/vulnerability/scan-groups/:scan-group-id/upload/post.md)

---

[API](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0.md) - [All operations](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/revisions/5ce571d1bb71?raw)
