---
title: "POST /to-do/{task_id}/comments/{comment_id}/attachments/generate-upload-url"
method: POST
path: "/to-do/{task_id}/comments/{comment_id}/attachments/generate-upload-url"
tags: ["comment-attachments"]
---

# POST /to-do/{task_id}/comments/{comment_id}/attachments/generate-upload-url

`POST /to-do/{task_id}/comments/{comment_id}/attachments/generate-upload-url`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/to-do/{task_id}/comments/{comment_id}/attachments/generate-upload-url`
- Auth: HTTP bearer

## Path parameters

- `task_id` string, uuid, required
- `comment_id` string, uuid, required

## Request body

- GenerateUploadCommentAttachmentUrlDto
  - `file_name` string, required: Original file name
  - `content_type` string, required: MIME type of the file

## Response `201`

---

[API](https://skmtc.dev/focusbear/apis/focusbear-api.md) - [All operations](https://skmtc.dev/focusbear/apis/focusbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/focusbear/apis/focusbear-api/revisions/3a83a3b9a811?raw)
