# defineCategory

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

Defines a category for organizing custom objects.

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

## Properties

| Property | Required | Type | Description |
| --- | --- | --- | --- |
| `apiName` | Required | `` `${string}__c` `` | Unique identifier for this category (e.g. `'gym__c'`). Must end with `__c`. |
| `description` | Required | `string` | Human-readable description of what this category groups.<br>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. |
| `name` | Required | `string` | Display name shown in the Rippling UI (e.g. `'Gym'`). |

[Complete options type](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefineCustomObjectCategoryProps-b24e76f2)

TypeScript signature

```ts
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

| Capability | Support |
| --- | --- |
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/defineCategory

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
