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

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="${v1preprocessorfileid.post.link}">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.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)
