Table of Contents

Class CreateInvitationRequest

Namespace
Builvero.Application.DTOs.Admin
Assembly
Builvero.Application.dll

Request model for creating a new invitation code.

public class CreateInvitationRequest
Inheritance
CreateInvitationRequest
Inherited Members

Remarks

This DTO is used by the admin invitation creation endpoint. A unique invitation code is automatically generated.

Properties

ExpiresAt

Gets or sets the UTC timestamp when this invitation expires, or null if it should never expire.

public DateTime? ExpiresAt { get; set; }

Property Value

DateTime?
Request model for creating a new invitation code.

Remarks

If set, the invitation cannot be used after this date. If null, the invitation does not expire (but may still be invalidated by reaching MaxUses).

Label

Gets or sets an optional label or description for this invitation.

public string? Label { get; set; }

Property Value

string
Request model for creating a new invitation code.

Remarks

Used for administrative tracking and organization of invitations.

MaxUses

Gets or sets the maximum number of times this invitation can be used for registration.

public int MaxUses { get; set; }

Property Value

int
Request model for creating a new invitation code.

Remarks

Defaults to 1, meaning the invitation can only be used once. Set to a higher value to allow multiple users to register with the same invitation code.