Class UpdateTemplateRequest
Request object for updating a template.
The request body is sent flat (no envelope). All properties are optional -
only properties set on the request are sent and changed.
public sealed record UpdateTemplateRequest : IValidatable, IEquatable<UpdateTemplateRequest>
- Inheritance
-
UpdateTemplateRequest
- Implements
Properties
BodyHtml
Gets or sets the template body HTML.
[JsonPropertyName("body_html")]
[JsonPropertyOrder(4)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? BodyHtml { get; set; }
Property Value
Remarks
Template body HTML must be no longer than 10_000_000 characters.
BodyText
Gets or sets the template body text.
[JsonPropertyName("body_text")]
[JsonPropertyOrder(5)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? BodyText { get; set; }
Property Value
Remarks
Template body text must be no longer than 10_000_000 characters.
Category
Gets or sets the template category.
[JsonPropertyName("category")]
[JsonPropertyOrder(2)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Category { get; set; }
Property Value
Remarks
Template category must be no longer than 255 characters.
Name
Gets or sets the template name.
[JsonPropertyName("name")]
[JsonPropertyOrder(1)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }
Property Value
Remarks
Template name must be no longer than 255 characters.
Subject
Gets or sets the template subject.
[JsonPropertyName("subject")]
[JsonPropertyOrder(3)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Subject { get; set; }
Property Value
Remarks
Template subject must be no longer than 255 characters.
Methods
Validate()
Validates the current instance.
public ValidationResult Validate()
Returns
- ValidationResult
Object containing validation errors, if any.