Class CreateClaimDefinitionRequest
S2 — admin create DTO. The (ClaimName, Scope, ApplicationId) triplet is
the uniqueness key; the server returns 409 on conflict.
public sealed class CreateClaimDefinitionRequest
Inheritance
Properties
ApplicationId
Required when Scope = "application"; null for global.
[JsonPropertyName("applicationId")]
public long? ApplicationId { get; set; }
ClaimName
[Required(AllowEmptyStrings = false)]
[StringLength(120, MinimumLength = 1)]
[JsonPropertyName("claimName")]
public required string ClaimName { get; set; }
DefaultValue
[JsonPropertyName("defaultValue")]
public string? DefaultValue { get; set; }
Description
[JsonPropertyName("description")]
public string? Description { get; set; }
DisplayName
[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }
EmitOnAccessToken
[JsonPropertyName("emitOnAccessToken")]
public bool EmitOnAccessToken { get; set; }
EmitOnIdToken
[JsonPropertyName("emitOnIdToken")]
public bool EmitOnIdToken { get; set; }
Required
[JsonPropertyName("required")]
public bool Required { get; set; }
Scope
"global" (default) or "application".
[JsonPropertyName("scope")]
public string Scope { get; set; }
Type
"string" (default) / "int" / "long" / "bool" / "datetime" / "url" / "email".
[JsonPropertyName("type")]
public string Type { get; set; }
ValidationPattern
Regex pattern; ignored for non-string types.
[JsonPropertyName("validationPattern")]
public string? ValidationPattern { get; set; }