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

definePageLayout

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

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines the detail-page layout for a custom object.

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

Properties​

PropertyRequiredTypeDescription
apiNameRequiredstring

Stable identifier for this layout (e.g. 'default').

Use 'default' for the layout that drives the **Add** form and the default record detail view. Each custom object supports one 'default' layout.

nameRequiredstring

Display name of this layout shown in the layout selector.

blueprintKeyOptionalstring

Blueprint key used during install. Defaults to the parent object's api_name.

headerEditsOptionalHeaderEdits

Header configuration — title and description fields.

Documented default: `{}`

systemCreatedOptionalboolean

Preserve the backend origin flag when importing an existing layout.

tabEditsOptionalTabEdits

Tab structure — which tabs and sections to show on the detail page.

Documented default: `{}`

visibilityConditionsOptionalVisibilityConditions

Visibility conditions for individual tabs and sections.

Documented default: `{}`

Complete options type
{ visibilityConditions?: VisibilityConditions; apiName: string; name: string; systemCreated?: boolean; tabEdits?: { newTabs?: ({ type: "tab_with_sections"; key: TabKey; name: string; sections: ({ type: "fields_section"; section?: SectionReference<NoInfer<O>>; key?: SectionKey; name?: string; fields: ("id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | { field: "id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; hidden?: boolean; editable?: boolean; readOnly?: boolean; defaultValue?: SectionFieldDefaultValue | null; height?: number; canBeDeleted?: boolean; })[]; layout?: SectionFieldsLayout; canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_object_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_field_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; layout?: SectionFieldsLayout; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "custom_section"; key: SectionKey; name: string; componentKey: CustomObjectCustomSectionComponentKey; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "reports_section"; key: SectionKey; name: string; reports: { key: string; reportId: string; position: { identifier: string; width: number; height: number; minWidth?: number; minHeight?: number; maxWidth?: number; maxHeight?: number; }; contextualFieldAttrName?: FieldRqlName; visualizationType?: string; }[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "canvas_section"; key: SectionKey; name: string; canvasCompositionId: CanvasCompositionId; inputMapping?: Record<string, string>; })[]; canBeDeleted?: boolean; canBeRenamed?: boolean; canBeMoved?: boolean; } | { type: "custom_tab"; key: TabKey; name: string; componentKey: string; })[]; systemTabEdits?: { [x: string]: { newName?: string; deleted?: boolean; newSections?: ({ type: "fields_section"; section?: SectionReference<NoInfer<O>>; key?: SectionKey; name?: string; fields: ("id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | { field: "id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; hidden?: boolean; editable?: boolean; readOnly?: boolean; defaultValue?: SectionFieldDefaultValue | null; height?: number; canBeDeleted?: boolean; })[]; layout?: SectionFieldsLayout; canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_object_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_field_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; layout?: SectionFieldsLayout; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "custom_section"; key: SectionKey; name: string; componentKey: CustomObjectCustomSectionComponentKey; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "reports_section"; key: SectionKey; name: string; reports: { key: string; reportId: string; position: { identifier: string; width: number; height: number; minWidth?: number; minHeight?: number; maxWidth?: number; maxHeight?: number; }; contextualFieldAttrName?: FieldRqlName; visualizationType?: string; }[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "canvas_section"; key: SectionKey; name: string; canvasCompositionId: CanvasCompositionId; inputMapping?: Record<string, string>; })[]; systemSectionEdits?: { [x: string]: { newName?: string; deleted?: boolean; newLayout?: SectionFieldsLayout; newFields?: ("id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | { field: "id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; hidden?: boolean; editable?: boolean; readOnly?: boolean; defaultValue?: SectionFieldDefaultValue | null; height?: number; canBeDeleted?: boolean; })[]; newHideName?: boolean; }; }; sectionsOrder?: SectionKey[]; }; }; tabsOrder?: TabKey[]; newTabLayout?: TabLayout | null; }; headerEdits?: { newTitleField?: string | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | null; titleFieldDeleted?: boolean; newDescriptionField?: string | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | null; descriptionFieldDeleted?: boolean; systemFieldEdits?: { [x: string]: { newRqlField?: string | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | null; deleted?: boolean; }; }; newFields?: { rqlName: string | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; key: HeaderFieldKey; canBeDeleted?: boolean; canBeChanged?: boolean; canBeMoved?: boolean; }[]; headerFieldsOrder?: FieldRqlName[]; headerFieldKeysOrder?: HeaderFieldKey[]; buttons?: JsonObject[]; }; blueprintKey?: string; }

Parameters​

ParameterRequiredTypeDescription
objectRequiredO—
TypeScript signature
definePageLayout<O extends ObjectReference>(object: O, props: PageLayoutOptions<NoInfer<O>>): DefinedPageLayout<O>;

Returns​

DefinedPageLayout<O>

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsNot available for this helper