---
title: "Add attachment to alert"
method: POST
path: "/api/{cloudId}/v1/alerts/{alertId}/attachments"
tags: ["Alerts"]
---

# Add attachment to alert

`POST /api/{cloudId}/v1/alerts/{alertId}/attachments`

Adds a file attachment to an alert.

## Path parameters

- `cloudId` string, required
- `alertId` string, required

## Response `200`

Returned if the attachment is successfully added.

- AlertAttachmentDto
  - `id` string, int64 — Attachment identifier (timestamp).
  - `attachmentName` string — Name of the attached file.
  - `insertedAt` string, date-time — Date and time when the attachment was added.

## Other responses

- `401` — Returned if the authentication credentials are incorrect.
- `403` — Returned if the user does not have permission to add attachments.
- `404` — Returned if the alert is not found.
- `422` — Returned if the attachment cannot be validated.

---

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