---
title: "Create Citation Attachment"
method: POST
path: "/references/folder/citations/attachments"
tags: ["References"]
---

# Create Citation Attachment

`POST /references/folder/citations/attachments`

Uploads a file and attaches it to an existing citation. The citation must already exist — this endpoint does not create citations. To create a citation and attach a file in one call, use POST /references/folder/citations/with-attachment.

The file is scanned for malware before upload. Infected files are rejected.

Supports both numeric and GUID folder and citation IDs. FolderId and CitationId must both be numeric or both be non-numeric.

**IsMain:** 0 = secondary attachment, 1 = primary attachment. Setting IsMain to 1 demotes the previous primary attachment.

**Maximum file size: 100 MB.**

## Response `200`

Attachment processed.

- CitationAttachmentCreatedResult
  - `folderId` string, nullable — Echo of the folder identifier from the request.
  - `citationId` string, nullable — Echo of the citation identifier from the request.
  - `attachmentId` string, nullable — The generated attachment identifier (numeric or 32-character hex GUID). Null when Success is false.
  - `success` boolean — Indicates whether the attachment was uploaded and recorded successfully.
  - `error` string, nullable — Error description when Success is false. Null when the operation succeeds.

---

[API](https://skmtc.net/researchsolutions/apis/article-galaxy-api.md) · [All operations](https://skmtc.net/researchsolutions/apis/article-galaxy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/researchsolutions/article-galaxy-api/revisions/70fb92d278f5/schema)
