---
title: "Export scan data for selected projects"
method: POST
path: "/export/cve"
tags: ["scan data export"]
---

# Export scan data for selected projects

`POST /export/cve`

Export scan data for selected projects

## Headers

- `X-Request-Id` string
- `X-Scan-Data-Type` string, required

## Request body

- ScanDataExportRequest — The criteria to select the scan data to export.
  - `job_name` string — Name of the scan data export job
  - `projects` integer[] — A list of one or more projects for which to export the scan data, currently only one project is supported due to performance concerns, but define as array for extension in the future.
  - `labels` integer[] — A list of one or more labels for which to export the scan data, defaults to all if empty
  - `repositories` string — A list of repositories for which to export the scan data, defaults to all if empty
  - `cveIds` string — CVE-IDs for which to export data. Multiple CVE-IDs can be specified by separating using ',' and enclosed between '{}'. Defaults to all if empty
  - `tags` string — A list of tags enclosed within '{}'. Defaults to all if empty

## Response `200`

Success.

- ScanDataExportJob — The metadata associated with the scan data export job
  - `id` integer — The id of the scan data export job

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `405` — Method not allowed
- `409` — Conflict
- `500` — Internal server error

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) · [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goharbor/harbor-api/revisions/62d78801f8df/schema)
