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

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

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines a custom object with typed field references, input parsers, and record operations. Pass the definition to defineManifest directly or through a component that references it. Add a list view with defineListView when deploying a new object through Metadata.

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

Properties​

PropertyRequiredTypeDescription
apiNameRequired`${string}__c`

Stable object API name, including the required __c suffix, such as ticket__c.

descriptionRequiredstring

Human-readable description of what this object represents.

nameRequiredstring

Singular display name shown in the Rippling UI, such as Ticket.

categoryOptionalCategoryInput<C>

Category definition or full category API name ending in __c. When omitted, defines <object-name>_category__c using this object's name and description.

defaultFieldSectionApiNameOptionalnull | string

Full API name of the default field section, preserved when authoring fields separately.

defaultFieldSectionNameOptionalnull | string

Display name of the default field section, preserved when authoring fields separately.

enableHistoryOptionalboolean

Optional desired history-tracking state observed during metadata reconciliation.

fieldsOptionalFieldDefinitions

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.

friendlyNameOptionalnull | string

SQL table name used for this object in the data catalog.

iconOptional{ readonly emoji?: string | null; readonly ripplingIcon?: string | null; readonly s3Bucket?: string; readonly s3Key?: string; }

Emoji, built-in Rippling icon, or S3 image displayed beside the object's name.

nameFieldOptionalNameFieldDefinition

Name-field definition; omitted definitions use a text name field.

nameFieldDetailsOptionalnull | { is_autonumber_field: boolean; autonumber_format: string; starting_number?: number | undefined; }

Auto-number settings for the name field, including format and starting number.

ownerRoleOptionalstring

Optional owning role id applied during REST provisioning / reconciliation.

pluralLabelOptionalnull | string

Plural display label used in the Rippling UI.

pluralNameOptionalstring

Plural display label; takes precedence over pluralLabel when supplied.

sectionsOptionalSectionDefinitions

Field sections keyed by API names ending in __c; any explicit sectionId also needs __c.

transformationApiNameOptionalnull | string

API name of the transformation whose output is this object.

Complete options type

TypeScript signature
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>>;

Returns​

The object definition with typed fields, inputs, records, and schema helpers.

DefinedCustomObject
Exact return type

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsAvailable with an authenticated SDK client