For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Article

defineCustomSetting

API reference for defineCustomSetting: parameters, properties, and return types.

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines a custom setting with a value matching its data type. Supply both permission groups when creating a new setting.

import { defineCustomSetting } from '@rippling/rippling-sdk';

Properties​

PropertyRequiredTypeDescription
apiNameRequiredstring

Stable, nonempty API name used to reference this setting.

dataTypeRequired"STRING" | "SECRET" | "NUMBER" | "BOOLEAN"

Use STRING or SECRET with a string value or null.

Use NUMBER with a safe integer, a decimal string or null.

Use BOOLEAN with true, false or null.

nameRequiredstring

Display name shown for this setting.

valueRequirednull | string | number | boolean

Text value for STRING or SECRET, or null.

Pass a safe integer as a number, or pass null. Use a string for decimals or integers beyond JavaScript's safe integer range.

Boolean value (true or false), or null.

manageGroupOptionalnull | DefinedGroup

Group whose members can view and edit the setting and manage its access. Supply both viewGroup and manageGroup when creating a new setting.

viewGroupOptionalnull | DefinedGroup

Group whose members can view the setting and include it in functions. Supply both viewGroup and manageGroup when creating a new setting.

Match properties to dataType​

dataTypevalue
"STRING" | "SECRET"string | null
"NUMBER"string | number | null
"BOOLEAN"boolean | null

Complete options type

TypeScript signature
defineCustomSetting(props: DefineCustomSettingProps): DefinedCustomSetting;

Returns​

DefinedCustomSetting

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsNot available for this helper