---
title: "# Upload File"
method: POST
path: "/v1/threat-library/files"
tags: ["Threats"]
---

# # Upload File

`POST /v1/threat-library/files`

Uploads a file that can later be referenced when creating custom actions or processes.
The file must be sent as multipart/form-data under the "file" field.

## Response `200`

FileUploadReturnResponse

- FileUploadOutput
  - `remote_file_id` integer

## Other responses

- `422` — validationErrorSwagger is represents the erroneous cases
- `default` — genericErrorSwagger is represents the erroneous cases

---

[API](https://skmtc.net/picussecurity/apis/picus-rest-api.md) · [All operations](https://skmtc.net/picussecurity/apis/picus-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/picussecurity/picus-rest-api/versions/cb0d02ee28f8/schema)
