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

defineCategory

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

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines a category for organizing custom objects.

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

Properties​

PropertyRequiredTypeDescription
apiNameRequired`${string}__c`

Unique identifier for this category (e.g. 'gym__c'). Must end with __c.

descriptionRequiredstring

Human-readable description of what this category groups.

The backend (CustomCategoryConfig.description: str) requires the key to be present and rejects null. Pass an empty string only if you truly have no meaningful copy.

nameRequiredstring

Display name shown in the Rippling UI (e.g. 'Gym').

Complete options type

TypeScript signature
defineCategory<const TApiName extends `${string}__c`>(props: DefineCustomObjectCategoryProps<TApiName>): Category & CustomObjectCategoryDefinition<TApiName extends `${infer N}__c` ? N : never>;

Returns​

Category & CustomObjectCategoryDefinition<TApiName extends `${infer N}__c` ? N : never>

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsNot available for this helper