---
title: "Upload an attachment (multipart field «file»)"
method: POST
path: "/tasks/{tid}/attachments"
tags: ["tasks"]
---

# Upload an attachment (multipart field «file»)

`POST /tasks/{tid}/attachments`

## Request

- Base URL: `https://task.igordudnek.com/api/v1`
- URL: `https://task.igordudnek.com/api/v1/tasks/{tid}/attachments`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `lt_access`

## Response `201`

OK

- Attachment
  - `content_type` string
  - `id` string, uuid, required
  - `original_name` string
  - `size_bytes` integer
  - `task_id` string, uuid, required

---

[API](https://skmtc.dev/loopertask/apis/loopertask-api.md) · [All operations](https://skmtc.dev/loopertask/apis/loopertask-api/llms.txt) · [OpenAPI document](https://skmtc.dev/loopertask/apis/loopertask-api/revisions/5d9903f15162?raw)
