---
title: "addCardsAttachmentsByIdCard()"
method: POST
path: "/cards/{idCard}/attachments"
tags: ["card"]
---

# addCardsAttachmentsByIdCard()

`POST /cards/{idCard}/attachments`

## Path parameters

- `idCard` string, required

## Query parameters

- `key` string, required
- `token` string, required

## Request body

- CardsAttachments
  - `file` string — A file
  - `mimeType` string — a string with a length from 0 to 256
  - `name` string — a string with a length from 0 to 256
  - `url` string — A URL starting with http:// or https:// or null

## Response `200`

Success

## Other responses

- `400` — Server rejection

---

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