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

defineCustomObject fields type reference

Inspect the exact accepted type for fields in defineCustomObject, including nested options and constraints.

Use with AI:Rippling AI ChatGPT Claude Cursor

The fields property is an input to defineCustomObject.

Custom-field definitions keyed by full API names ending in __c. The returned object's fields map preserves these keys for typed references. Omit this map when defining fields separately with defineField.

Input shape​

FieldDefinitions

Exact accepted type​

F & ApiNamedMap<F> & { [K in keyof F]: string extends Exclude<F[K]["section"], undefined> ? F[K] : Exclude<F[K]["section"], undefined> extends NoInfer<keyof S> ? F[K] : never; }
TypeScript signature and generic parameters
defineCustomObject<const A extends `${string}__c`, const F extends FieldDefinitions = {}, C extends string = `${Unsuffixed<A>}_category`, S extends SectionDefinitions = {}, N extends NameFieldDefinition = { kind: "text"; }>(props: DefineCustomObjectProps<A, F, C, S, N>): DefinedCustomObject<CustomObjectDefinition<LogicalCustomObjectName<Unsuffixed<A>>, LogicalCategoryName<C>, S, F, N>>;