Record representing a custom block that can be inserted into articles by any user.
tid
Timestamp-based ID
Properties
category
string
Optional
Category for marketplace organization.
maxLength: 100 bytescreatedAt
string
datetime
Required
Timestamp when the block was created.
css
string
Required
Scoped CSS for the block. Uses {{fieldKey}} placeholders for dynamic values like colors.
maxLength: 50000 bytesdescription
string
Optional
Short description of the block's purpose and usage.
maxLength: 3000 bytesmaxGraphemes: 300 graphemesfields
array
of
ref
#fieldDef
Required
Field definitions for user-configurable parameters.
maxLength: 20 itemshtml
string
Required
HTML template. Uses {{fieldKey}} placeholders for dynamic values.
maxLength: 50000 bytesname
string
Required
Display name of the block.
maxLength: 500 bytesmaxGraphemes: 50 graphemespreview
blob
Optional
Preview thumbnail image for the block marketplace.
maxSize: 500.0 KBupdatedAt
string
datetime
Optional
Timestamp when the block was last updated.
version
integer
Optional
Version number, incremented on each update.
minimum: 1View raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"name",
"html",
"css",
"fields",
"createdAt"
],
"properties": {
"css": {
"type": "string",
"maxLength": 50000,
"description": "Scoped CSS for the block. Uses {{fieldKey}} placeholders for dynamic values like colors."
},
"html": {
"type": "string",
"maxLength": 50000,
"description": "HTML template. Uses {{fieldKey}} placeholders for dynamic values."
},
"name": {
"type": "string",
"maxLength": 500,
"description": "Display name of the block.",
"maxGraphemes": 50
},
"fields": {
"type": "array",
"items": {
"ref": "#fieldDef",
"type": "ref"
},
"maxLength": 20,
"description": "Field definitions for user-configurable parameters."
},
"preview": {
"type": "blob",
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 500000,
"description": "Preview thumbnail image for the block marketplace."
},
"version": {
"type": "integer",
"minimum": 1,
"description": "Version number, incremented on each update."
},
"category": {
"type": "string",
"maxLength": 100,
"description": "Category for marketplace organization."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Timestamp when the block was created."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "Timestamp when the block was last updated."
},
"description": {
"type": "string",
"maxLength": 3000,
"description": "Short description of the block's purpose and usage.",
"maxGraphemes": 300
}
}
},
"description": "Record representing a custom block that can be inserted into articles by any user."
}