Struct UpdateTemplateFragmentRequest
- Namespace
- Vonage.VerifyV2.UpdateTemplateFragment
- Assembly
- Vonage.dll
Represents a request to update the text content of a template fragment.
public readonly struct UpdateTemplateFragmentRequest : IVonageRequest
- Implements
- Inherited Members
Properties
TemplateFragmentId
The unique identifier (UUID) of the template fragment to update.
[JsonIgnore]
public Guid TemplateFragmentId { get; }
Property Value
TemplateId
The unique identifier (UUID) of the parent template.
[JsonIgnore]
public Guid TemplateId { get; }
Property Value
Text
The new message text content with optional placeholders: ${code}, ${brand}, ${time-limit}, and ${time-limit-unit}.
public string Text { get; }
Property Value
Methods
Build()
Creates a new builder to construct an UpdateTemplateFragmentRequest.
public static IBuilderForId Build()
Returns
- IBuilderForId
A builder interface to set the template ID.
Examples
var request = UpdateTemplateFragmentRequest.Build()
.WithId(Guid.Parse("8f35a1a7-eb2f-4552-8fdf-fffdaee41bc9"))
.WithFragmentId(Guid.Parse("c70f446e-997a-4313-a081-60a02a31dc19"))
.WithText("Your ${brand} verification code is ${code}. Valid for ${time-limit} ${time-limit-unit}.")
.Create();
- See Also
BuildRequestMessage()
Converts the request to a HttpRequest.
public HttpRequestMessage BuildRequestMessage()
Returns
- HttpRequestMessage
The Http request.