Skip to main content
POST
Validate or adapt a Blueprint

Body

application/json

Supply source or its legacy sourceJson alias.

source
required
sourceJson
deprecated
sourceUrl
string<uri>

Optional base URL used while adapting external Blueprint resources.

adapt
boolean
default:false

Return a SandyWP-adapted source and adaptation changes.

blueprintId
string

Saved Blueprint id. Its presence requires bearer authentication.

Response

Compatibility findings and optional adapted source.

Validation output. source and changes are present only for adaptation responses or bundle previews.

valid
boolean
required

False when one or more compatibility findings have severity: error.

schemaVersion
enum<integer>
required
Available options:
1,
2
stepCount
integer
required
Required range: x >= 0
hoisted
object
required
findings
object[]
required
source
object

A WordPress Playground Blueprint document. SandyWP accepts schema version 1 or 2 and validates its supported steps and resources before saving or running it.

Example:
changes
object[]
manifestDirectory
string

Present for a ZIP bundle preview.