---
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`

## Request

- Base URL: `https://api.reteno.com`
- URL: `https://api.reteno.com/api/v1/preprocessor/file/upload`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/reteno/apis/reteno-com/docs/api/v1/preprocessor/file/upload/post.ts> (a function with typed inputs; its response is checked against the schema)

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`

- FileValidationResult
  - `message` string
  - `importId` string
  - `fileId` string
  - `valid` boolean

## Changes

- **2026-11-03** `7e3e7243824f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/reteno/apis/reteno-com/changes/api/v1/preprocessor/file/upload/post.md)

---

[API](https://skmtc.dev/reteno/apis/reteno-com.md) - [All operations](https://skmtc.dev/reteno/apis/reteno-com/llms.txt) - [OpenAPI document](https://skmtc.dev/reteno/apis/reteno-com/revisions/7e3e7243824f?raw)
