Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1.74 KB

updatesubscriberpreferenceresponsedto.md

File metadata and controls

37 lines (32 loc) · 1.74 KB

UpdateSubscriberPreferenceResponseDto

Example Usage

import { UpdateSubscriberPreferenceResponseDto } from "@novu/api/models/components";

let value: UpdateSubscriberPreferenceResponseDto = {
  template: {
    id: "<id>",
    name: "<value>",
    critical: false,
    triggers: [
      {
        type: "event",
        identifier: "<value>",
        variables: [
          {
            name: "<value>",
          },
        ],
      },
    ],
  },
  preference: {
    enabled: false,
    channels: {},
  },
};

Fields

Field Type Required Description
template components.TemplateResponse ✔️ The workflow information and if it is critical or not
preference components.Preference ✔️ The preferences of the subscriber regarding the related workflow