Example Usage

import { CustomMessageUpdateRequest } from "syllable-sdk/models/components";

let value: CustomMessageUpdateRequest = {
  name: "<value>",
  text: "<value>",
  rules: [
    {
      description: "octave wombat though",
      timeRangeStart: "09:00",
      timeRangeEnd: "17:00",
      date: "2025-01-01",
      daysOfWeek: [
        "mo",
        "tu",
        "we",
        "th",
        "fr",
      ],
      invert: false,
      text: "Sorry, we're closed today",
    },
  ],
  id: 517309,
};

Fields

FieldTypeRequiredDescription
namestringTRUEThe name of the custom message
textstringTRUEThe text of the custom message
labelstringFALSEThe label of the custom message
rulescomponents.CustomMessageRule[]FALSERules for time-specific message variants
idnumberTRUEThe ID of the custom message
typestringFALSEN/A