Skip to main content

POST /api/doctrine/import

POST 

/api/doctrine/import

Replace the workspace's rules from a doctrine.v1 document.

The body is the raw YAML. It is validated twice, and both must pass: first [DoctrineDoc::from_yaml] enforces the three format rules (lossless schema, constants that travel, no forged system rule), then the ordinary rule-set save re-runs the author-time checks and the locked-rule protection. An import is not a privileged path — it may not author anything a hand-written PUT could not.

Request

Responses

the imported set, now in force, with its new version