---
title: "Edit notification"
method: PATCH
path: "/notifications/{notification_id}"
tags: ["Notifications"]
---

# Edit notification

`PATCH /notifications/{notification_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/notifications/{notification_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Update a single notification. Supports read status, pop-up status, dismissal, deletion and persistence.

## Path parameters

- `notification_id` integer, required: Notification identifier

## Request body

- NotificationsPatchRequest: Patch operations for notifications
  - `patch` NotificationPatchItem[], required: Patch operations
    - `op` 'replace', required: Supported operation
    - `path` 'isReadMultiple' | 'isReadMultipleIds' | 'isRead' | 'hasPoppedUp' | 'isDismissed' | 'isDeleted' | 'markPersistent', required: Field to update
    - `value` union, required: Value for the patch operation
      - boolean
      - string

## Response `200`

Success

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/4b2c943a00dc?raw)
