---
title: "Update notification preferences"
method: PATCH
path: "/v1/company_memberships/notification_preferences"
tags: ["Company membership"]
---

# Update notification preferences

`PATCH /v1/company_memberships/notification_preferences`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/company_memberships/notification_preferences`
- Auth: HTTP bearer

Updates the authenticated user's notification preferences for their
membership in the current company. The `preferences` object maps each
known notification type to a channel map. Valid channels are `in_app` and
`email`; valid modes are `immediate`, `daily`, `weekly`, `disabled`. Unknown
types, channels or modes return `422`.

## Parameters

- `#/paths/~1v1~1users/get/parameters/0` (unresolved $ref)

## Request body

- object
  - `preferences` object, required: Map of notification type to `{ in_app, email }` mode map. Each mode is one of `immediate`, `daily`, `weekly`, `disabled`.

## Response `200`

The updated notification preferences.

- object
  - `notification_preferences` object

## Other responses

- `401`: Unauthorized
- `404`: Membership not found
- `412`: `preferences` is required.
- `422`: Invalid notification type, channel or mode.

---

[API](https://skmtc.dev/cardda/apis/organization-api.md) - [All operations](https://skmtc.dev/cardda/apis/organization-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cardda/apis/organization-api/revisions/32a4430278a8?raw)
