---
title: "PM · Tasks · Add or remove file attachments on a task"
method: POST
path: "/api/v1/pm/tasks/{task_id}/attachment"
tags: ["tasks"]
---

# PM · Tasks · Add or remove file attachments on a task

`POST /api/v1/pm/tasks/{task_id}/attachment`

## Request

- Base URL: `https://api.simplified.com`
- URL: `https://api.simplified.com/api/v1/pm/tasks/{task_id}/attachment`
- Auth: API key in header `Authorization`

Add or remove file attachments on a task. Attachments are addressed by
attachment UUID (get IDs from `getTask?expand=attachments`).
Body: `{"add": ["<attachment_id>", ...], "remove": ["<attachment_id>", ...]}`.
Either key may be omitted. Returns the updated attachment list.

## Path parameters

- `task_id` string, required

## Headers

- `Organization` string
- `Space` string

## Request body

- AddRemoveAttachments: Shared shape for attachment mutation endpoints. `add` entries are attachment objects (see attachment app); `remove` entries are attachment IDs.
  - `add` object[]
  - `remove` string[]

## Response `200`

Updated attachment list.

- unknown

---

[API](https://skmtc.dev/simplified/apis/project-manager.md) - [All operations](https://skmtc.dev/simplified/apis/project-manager/llms.txt) - [OpenAPI document](https://skmtc.dev/simplified/apis/project-manager/revisions/9ef06e133a13?raw)
