# Change notification choices. Security email cannot be switched off

`PUT /account/notifications` · Rivier · workspace

Change notification choices. Security email cannot be switched off.

- Scope: workspace:write
- Mcp: rivier_notifications_set
- Graphql: Mutation.workspaceNotificationSet
- Sdk: workspace.notification.set
- Cli: workspace notification set

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "prefs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "enum": [
              "approvals",
              "activity",
              "security",
              "team",
              "billing",
              "product"
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "in_app",
              "push",
              "digest"
            ]
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "topic",
          "channel",
          "enabled"
        ],
        "additionalProperties": false
      },
      "maxItems": 64
    },
    "digest": {
      "type": "string",
      "enum": [
        "off",
        "daily",
        "weekly"
      ]
    },
    "quiet_start": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        {
          "type": "null"
        }
      ]
    },
    "quiet_end": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X PUT 'https://api.rivier.ai/account/notifications' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "project_id": "string",
  "prefs": [
    {
      "topic": "approvals",
      "channel": "email",
      "enabled": false
    }
  ],
  "digest": "off",
  "quiet_start": "string",
  "quiet_end": "string"
}'
```
