Class UpdateInvitationRequest
- Namespace
- Builvero.Application.DTOs.Admin
- Assembly
- Builvero.Application.dll
Request model for updating an existing invitation code.
public class UpdateInvitationRequest
- Inheritance
-
UpdateInvitationRequest
- Inherited Members
Remarks
This DTO is used by the admin invitation update endpoint. Only provided fields are updated. Null values indicate that the field should not be changed.
Properties
ExpiresAt
Gets or sets the UTC timestamp when this invitation expires, or null to leave unchanged or remove expiration.
public DateTime? ExpiresAt { get; set; }
Property Value
- DateTime?
- Request model for updating an existing invitation code.
Remarks
To remove an expiration date, set this to a specific value (e.g., DateTime.MaxValue) or leave null if the update logic supports clearing expiration.
Label
Gets or sets an optional label or description for this invitation, or null to leave unchanged.
public string? Label { get; set; }
Property Value
- string
- Request model for updating an existing invitation code.
Remarks
To clear an existing label, set this to an empty string.
MaxUses
Gets or sets the maximum number of times this invitation can be used for registration, or null to leave unchanged.
public int? MaxUses { get; set; }
Property Value
- int?
- Request model for updating an existing invitation code.
Remarks
If provided, must be greater than or equal to the current usage count (UsedCount).