Publish the staged draft to the live site
Promotes the draft to the live site and refreshes the serving index. Everything is optional in the body: send {} (or nothing) to publish everything that is staged, or keys / routes to publish only part of it.
Before it goes live the publish checks that the site has a real purpose in its brief (first publish), that no <dotsy-collection> card template would render empty, that redirects do not loop, that the site's Rules pass (for agents, a blocking Rule answers 422; a person gets ruleWarnings on the 200), and that no import or adapt job is still running. A blocked publish answers an error and changes nothing.
feedback and handoff are optional. Agents send them so Dotsy learns from the session and the next session inherits the decisions made in this one.
Request
- Base URL: https://api.dotsy.ai
- URL: https://api.dotsy.ai/api/v1/sites/{slug}/publish
- Auth: HTTP bearer
Path parameters
Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.
Request body
Example request
{
"handoff": "Switched the hero to the new photo; pricing copy still needs review.",
"keys": [
"blog/launch.html"
],
"routes": [
"/blog/launch"
]
}Response
Published. The site is live.
Example response
{
"publicUrl": "https://acme-studio.dotsy.site/"
}Changes
No recorded changes to this operation across all 1 revision of this API.