---
title: "Update subscriber global preferences"
method: PATCH
path: "/v1/subscribers/{subscriberId}/preferences"
tags: ["Subscribers"]
---

# Update subscriber global preferences

`PATCH /v1/subscribers/{subscriberId}/preferences`

## Request

- Base URL: `https://example.com/api`
- URL: `https://example.com/api/v1/subscribers/{subscriberId}/preferences`
- Auth: API key in header `Authorization`

## Path parameters

- `subscriberId` string, required

## Request body

- UpdateSubscriberGlobalPreferencesRequestDto
  - `enabled` boolean: Enable or disable the subscriber global preferences.
  - `preferences` ChannelPreference[]: The subscriber global preferences for every ChannelTypeEnum.
    - `type` 'in_app' | 'email' | 'sms' | 'chat' | 'fb' | 'wab' | 'voice' | 'push', required: The type of channel that is enabled or not
    - `enabled` boolean, required: If channel is enabled or not

## Response `200`

- object
  - `data` UpdateSubscriberPreferenceResponseDto
    - `template` TemplateResponse, required
      - `_id` string, required: Unique identifier of the workflow
      - `name` string, required: Name of the workflow
      - `critical` boolean, required: Critical templates will always be delivered to the end user and should be hidden from the subscriber preferences screen
      - `triggers` string[], required: Triggers are the events that will trigger the workflow.
    - `preference` Preference, required
      - `enabled` boolean, required: Sets if the workflow is fully enabled for all channels or not for the subscriber.
      - `channels` PreferenceChannels, required
        - `email` boolean
        - `sms` boolean
        - `in_app` boolean
        - `chat` boolean
        - `push` boolean
        - `fb` boolean
        - `wab` boolean
        - `voice` boolean

---

[API](https://skmtc.dev/cequens/apis/omni-link-api.md) - [All operations](https://skmtc.dev/cequens/apis/omni-link-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cequens/apis/omni-link-api/revisions/bf6b01359cfd?raw)
