Alerts

Add attachment to alert

Changed on

Adds a file attachment to an alert.

post/api/{cloudId}/v1/alerts/{alertId}/attachments

Request

  • Base URL
    https://api.atlassian.com/jsm/ops
  • URL
    https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/alerts/{alertId}/attachments
  • Auth
    • HTTP basic
    • or OAuth 2
      Authorization code: https://auth.stg.atlassian.com/authorize
      Token URL: https://auth.stg.atlassian.com/oauth/token scopes: read:ops-alert:jira-service-management, write:ops-alert:jira-service-management

Path parameters

cloudIdstring required

The cloud ID of the Jira instance.

alertIdstring required

The ID of the alert.

Request body multipart/form-data

filestring binary

The file to attach.

Response

Returned if the attachment is successfully added.

idstring int64

Attachment identifier (timestamp).

attachmentNamestring

Name of the attached file.

insertedAtstring date-time

Date and time when the attachment was added.

Example response

{
  "id": "1234567890",
  "attachmentName": "error_log.txt",
  "insertedAt": "2024-01-05T07:06:47.958Z"
}

Changes