---
title: "Adds files to a given task."
method: POST
path: "/tasks/{taskId}/files/input"
tags: ["Tasks (Classic)"]
---

# Adds files to a given task.

`POST /tasks/{taskId}/files/input`

Adds files to a given task.

## Path parameters

- `taskId` string, required

## Request body

- TaskFileDTO — describes files; remember that either url, content or token should be filled
  - `name` string
  - `url` string
  - `content` string
  - `token` string
  - `category` 'WORKFILE' | 'TM' | 'DICTIONARY' | 'REF' | 'LOG_FILE' — file category

## Response `204`

Success

---

[API](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api.md) · [All operations](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xtrf/xtrf-home-portal-api/revisions/0c24935a3319/schema)
