---
title: "Upload a task attachment"
method: PUT
path: "/tasks/{id}/attachments"
tags: ["task"]
---

# Upload a task attachment

`PUT /tasks/{id}/attachments`

Upload a task attachment. You can pass multiple files with the files form param.

## Path parameters

- `id` integer, required

## Response `200`

Attachments were uploaded successfully.

- ModelsMessage
  - `message` string — A standard message.

## Other responses

- `403` — No access to the task.
- `404` — The task does not exist.
- `500` — Internal error

---

[API](https://skmtc.net/go-vikunja/apis/vikunja-api.md) · [All operations](https://skmtc.net/go-vikunja/apis/vikunja-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/go-vikunja/vikunja-api/revisions/feb3f68bbdf1/schema)
