create_component
Build custom components in Storyblok by specifying fields like name, schema, and properties. Define root status, nestability, preview options, and visual elements for flexible content modeling.
Instructions
Creates a new component with all supported fields.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
color | No | ||
component_group_uuid | No | ||
content_type_asset_preview | No | ||
display_name | No | ||
icon | No | ||
internal_tag_ids | No | ||
is_nestable | No | ||
is_root | No | ||
name | Yes | ||
preview_field | No | ||
preview_tmpl | No | ||
schema | No |
Input Schema (JSON Schema)
{
"properties": {
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Color"
},
"component_group_uuid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Component Group Uuid"
},
"content_type_asset_preview": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Content Type Asset Preview"
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Display Name"
},
"icon": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Icon"
},
"internal_tag_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Internal Tag Ids"
},
"is_nestable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": true,
"title": "Is Nestable"
},
"is_root": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": false,
"title": "Is Root"
},
"name": {
"title": "Name",
"type": "string"
},
"preview_field": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Preview Field"
},
"preview_tmpl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Preview Tmpl"
},
"schema": {
"additionalProperties": true,
"default": {},
"title": "Schema",
"type": "object"
}
},
"required": [
"name"
],
"title": "create_componentArguments",
"type": "object"
}