theme.preset.apply
Apply one of the active theme's presets (Varyasyon) to the workspace draft — only the values the preset names change.
- scope:
design:write - storefront-visible (bumps the catalog generation): no
- destructive: no
Payload
| field | type | required | notes |
|---|---|---|---|
workspace | string (/^(main|ws_[A-Z0-9]{26})$/, default "main") | no | |
preset | string (/^[a-z][a-z0-9-]*$/, ≤40 chars) | yes | |
expectedRev | integer (1..9007199254740991) | null | no |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"workspace": {
"default": "main",
"type": "string",
"pattern": "^(main|ws_[A-Z0-9]{26})$"
},
"preset": {
"type": "string",
"maxLength": 40,
"pattern": "^[a-z][a-z0-9-]*$"
},
"expectedRev": {
"default": null,
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"preset"
],
"additionalProperties": false
}Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/theme.preset.apply.md