---
title: "Set project notification preference"
method: PATCH
path: "/api/w/{wId}/spaces/{spaceId}/project_notification_preferences"
tags: ["Private Spaces"]
---

# Set project notification preference

`PATCH /api/w/{wId}/spaces/{spaceId}/project_notification_preferences`

Sets the current user's notification preference for a project space.

## Path parameters

- `wId` string, required
- `spaceId` string, required

## Request body

- object
  - `preference` 'all_messages' | 'only_mentions' | 'never', required

## Response `200`

Success

- object
  - `userProjectNotificationPreference` object, nullable
    - `sId` string
    - `spaceId` string
    - `userId` string
    - `preference` 'all_messages' | 'only_mentions' | 'never'

## Other responses

- `400` — Bad request (space is not a project or invalid body)
- `401` — Unauthorized

---

[API](https://skmtc.dev/dust-tt/apis/dust-api-documentation.md) · [All operations](https://skmtc.dev/dust-tt/apis/dust-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dust-tt/dust-api-documentation/revisions/957ecf7d86f2/schema)
