Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

CreateCustomTokenRequest

DTO for creating a custom token

Properties

Name Type Description
name*string

Human-readable display name for the token (e.g. "Company Secretary")

Human-readable display name for the token (e.g. "Company Secretary")

tokenIdentifier*string

The token identifier used in templates (e.g. "CompanySecretary" for {{ Custom.CompanySecretary }}).
Must be alphanumeric with underscores only. Unique per tenant.

The token identifier used in templates (e.g. "CompanySecretary" for {{ Custom.CompanySecretary }}).
Must be alphanumeric with underscores only. Unique per tenant.

descriptionstring

Optional prompt text shown when filling in the token value

Optional prompt text shown when filling in the token value

defaultValuestring

Optional default value pre-populated in the token form

Optional default value pre-populated in the token form

displayWidthstring

Preset display width for the input. Null defaults to Full.

Preset display width for the input. Null defaults to Full.

linesinteger

Number of visible text lines. Null renders a single-line input, 2+ renders a textarea.

Number of visible text lines. Null renders a single-line input, 2+ renders a textarea.

isRichTextboolean

When true and Lines >= 2, the input renders as a rich text editor instead of a plain textarea.

When true and Lines >= 2, the input renders as a rich text editor instead of a plain textarea.

isNumberboolean

When true the value is a number: the input takes a number and the token renders with the number format.

When true the value is a number: the input takes a number and the token renders with the number format.

numberDecimalPlacesinteger

Number tokens only: decimal places the value renders with (0 to 2). Null keeps the decimals as entered.

Number tokens only: decimal places the value renders with (0 to 2). Null keeps the decimals as entered.

numberThousandsSeparatorboolean

Number tokens only: whether the value renders with a thousands separator.

Number tokens only: whether the value renders with a thousands separator.

numberCurrencySymbolboolean

Number tokens only: whether the value renders with the practice currency symbol.

Number tokens only: whether the value renders with the practice currency symbol.

JSON Example

{
  "name": "string",
  "tokenIdentifier": "string",
  "description": "string",
  "defaultValue": "string",
  "displayWidth": "string"
}

Used By Operations