---
title: "Add an attachment to a comment."
method: POST
path: "/comments/{cid}/attachment"
tags: ["Comment"]
---

# Add an attachment to a comment.

`POST /comments/{cid}/attachment`

Attach a file to the comment. The file must be in JPEG, PNG, or GIF format

## Path parameters

- `cid` string, required

## Response `default`

default response

---

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