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

# Update subscriber preference

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

## Path parameters

- `subscriberId` string, required
- `templateId` string, required

## Request body

- UpdateSubscriberPreferenceRequestDto
  - `channel` ChannelPreference
    - `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
  - `enabled` boolean — Sets if the workflow is fully enabled for all channels or not for the subscriber.

## 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/authentication.md) · [All operations](https://skmtc.dev/cequens/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cequens/authentication/revisions/deadb0661f19/schema)
