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

# PATCH /v2/notifications/{notification_id}/

`PATCH /v2/notifications/{notification_id}/`

NotificationDetailView operations.

## Request body

- NotificationSerializerV2
  - `id` integer
  - `enabled` boolean, nullable
  - `trigger_value` integer
  - `space_id` integer
  - `space_name` string
  - `is_one_shot` boolean, nullable
  - `cooldown` integer
  - `trigger_type` 'greater_than' | 'less_than' | 'equal_to'
  - `notification_recipients` NotificationRecipient[], required
    - `id` integer
    - `notification_id` integer
    - `user` NotificationUser
      - `id` integer
    - `sms_enabled` boolean
    - `email_enabled` boolean
    - `push_notification_enabled` boolean
    - `sms_to_num` string, nullable
    - `email_address` string, email, nullable
    - `email_unsubscribed` boolean
    - `sms_unsubscribed` boolean
    - `email_unsubscribed_all` string
    - `sms_unsubscribed_all` string
  - `trigger_metric` 'occupancy' | 'utilization' | 'events' | 'rate_of_entry'
  - `trigger_comparison` 'greater_than' | 'less_than' | 'equal_to'
  - `trigger_space_capacity_type` 'target' | 'legal' | 'safe', nullable
  - `trigger_duration_minutes` integer, nullable
  - `trigger_event_direction` integer, nullable
  - `restart_count_at_daily_reset` boolean, nullable
  - `escalation_threshold` integer, nullable
  - `message_template` string

## Response `200`

Updated

- OptionalNotificationSerializer
  - `id` integer
  - `enabled` boolean, nullable
  - `trigger_value` integer
  - `space_id` integer
  - `is_one_shot` boolean, nullable
  - `cooldown` integer
  - `notification_type` 'sms' | 'slack' | 'push_notification'
  - `trigger_type` string, required
  - `meta` object

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[API](https://skmtc.dev/density/apis/your-project-api.md) · [All operations](https://skmtc.dev/density/apis/your-project-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/density/your-project-api/revisions/eab10fe035e6/schema)
