---
title: "Update file for preprocessor"
method: POST
path: "/api/v1/preprocessor/file/{id}"
tags: ["Messages"]
---

# Update file for preprocessor

`POST /api/v1/preprocessor/file/{id}`

## Request

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

The methods updates the data of a preprocessor file uploaded using the Upload file for preprocessor method.<br/>To update the file, use the <b>fileId</b> value returned by the <a href="https://docs.reteno.com/reference/uploadpreprocessorfile-1">Upload file for preprocessor</a> method in its response.

## Path parameters

- `id` string, required

## Request body

- PreProcessorFileUpdateRequest
  - `link` string, required: The link to the PreProcessor data file in an external repository.
  - `ttlHours` integer: File time to live in the system in hours. The default value is month.

## Response `200`

- PreprocessorFileUpdateResponse
  - `message` string
  - `asyncSessionId` 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/:id/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)
