---
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://yespo.io` (the document declares no server; this is the origin it was published from)
- URL: `https://yespo.io/api/v1/preprocessor/file/upload`
- Auth: HTTP basic

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.dev/yespo/apis/yespo-api.md) · [All operations](https://skmtc.dev/yespo/apis/yespo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yespo/apis/yespo-api/revisions/b662f92b6c40?raw)
