---
title: "Upload file for preprocessor"
method: POST
path: "/api/v1/preprocessor/file/upload"
tags: ["Messages"]
---

# Upload file for preprocessor

`POST /api/v1/preprocessor/file/upload`

The method is used for uploading a file for the preprocessor from an external repository.

## Request body

- PreProcessorDto
  - `link` string, required — The link to the PreProcessor data file in an external repository.
  - `preprocessorType` string, required — PreProcessor data type [Random, Key].
  - `ttlHours` integer — File time to live in the system in hours. The default value is 1 month.

## Response `200`

---

[API](https://skmtc.net/esputnik/apis/esputnik-com.md) · [All operations](https://skmtc.net/esputnik/apis/esputnik-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esputnik/esputnik-com/versions/1c4afd7ba72a/schema)
