Create Component
Components
Create Component
Create a new component
POST
Create Component
Documentation Index
Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Component name (unique within project)
Component type:
view or layoutComponent source code (TypeScript)
Parent collection ID (null for root collection)
Example Request
The
title and description fields are automatically extracted from the component’s metadata() function. The TypeScript code in content is automatically compiled to JavaScript and stored in the read-only compiled field.Response
Returns the created Component object with statusdraft.