---
title: "Add Topic Attachment"
method: POST
path: "/api/users/:userId/topics/:topicId/attachments"
tags: ["attachments"]
---

# Add Topic Attachment

`POST /api/users/:userId/topics/:topicId/attachments`

Add an Attachment to the topic

## Path parameters

- `userId` string, required
- `topicId` string, required

## Request body

- object
  - `name` string
  - `type` string
  - `size` integer
  - `source` string
  - `link` string

## Response `200`

New Attachment added successfully

- object
  - `status` object
    - `code` integer
  - `data` Attachment
    - `name` string
    - `type` string
    - `size` integer
    - `source` string
    - `creatorId` string
    - `link` string

---

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