get_design_warnings
Dry-run design validation (no save). Pass content to validate a draft, or omit content and set target+ids to validate the saved document. Warns on unknown block types, unknown button actions, misplaced/unparseable dataRequests/inputSchema, missing requestName/variables/resultWrites, routePageId issues, form field mapping, translation gaps, a prop that belongs to another block type (design.warning.prop_not_supported_by_block), and a FlexListBlock left at the implicit row default (design.warning.flex_list_implicit_row). DOM/overflow detectors are not included.
get_design_warnings · Group: design
Inputs
websiteId
required
target
required — page | chrome | chrome-header | chrome-footer | page-component. chrome-header and chrome-footer select the chrome surface; target chrome plus kind still works.
pageId
optional
kind
optional — header|footer when target=chrome. header is chrome-header; footer is chrome-footer.
componentId
optional
content
optional — Optional draft editor document to validate
contentLocale
optional
codes
optional
excludeCodes
optional
locales
optional
groupBy
optional — code (default, counts only, truncated) | none (full rows)
Schema
{
"name": "get_design_warnings",
"group": "design",
"inputFields": [
{
"name": "websiteId",
"required": true
},
{
"name": "target",
"required": true,
"description": "page | chrome | chrome-header | chrome-footer | page-component. chrome-header and chrome-footer select the chrome surface; target chrome plus kind still works."
},
{
"name": "pageId",
"required": false
},
{
"name": "kind",
"required": false,
"description": "header|footer when target=chrome. header is chrome-header; footer is chrome-footer."
},
{
"name": "componentId",
"required": false
},
{
"name": "content",
"required": false,
"description": "Optional draft editor document to validate"
},
{
"name": "contentLocale",
"required": false
},
{
"name": "codes",
"required": false
},
{
"name": "excludeCodes",
"required": false
},
{
"name": "locales",
"required": false
},
{
"name": "groupBy",
"required": false,
"description": "code (default, counts only, truncated) | none (full rows)"
}
]
}Maps to
POST /api/v1/{locale}/{websiteId}/design-warnings→ API