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

defineCanvasInstance

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

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines a canvas with components, actions, and variables.

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

Properties​

PropertyRequiredTypeDescription
apiNameRequired`${string}__c`—
componentsRequiredCanvasComponent[]—
nameRequirednull | string—
actionsOptionalnull | CanvasAction[]—
canvasActionsOptionalnull | CanvasAction[]—
functionsOptionalreadonly DefinedFunction<any, any>[]

Function definitions referenced by actions, included in the manifest.

mediaOptionalnull | Record<string, CanvasMedia>—
sourceIdOptionalnull | string

Source ID from an extracted config; never used as the Canvas identity.

variablesOptionalnull | CanvasVariable[]—
versionOptionalnull | CanvasVersion—

Complete options type

TypeScript signature
defineCanvasInstance(props: DefineCanvasInstanceProps): DefinedCanvasInstance;

Returns​

DefinedCanvasInstance

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsNot available for this helper