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

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

---

[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)
