ai
DELETE /v1/ai/site-builds/{siteBuildId}
Delete an AI-built site draft.
Authentication
Send an API key as a bearer token. The key must carry the sites.create permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X DELETE https://api.zinndigital.com/v1/ai/site-builds/{siteBuildId} \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Removes the build from the organization's list and deletes its stored content: the generated files, its images, the brief it was made from and any bundle a publish left in storage. After this the build answers 404 everywhere. A site the build was published to is not touched: its files live on that site's host, and nothing here changes them. The record that the build existed, what it cost and where it was published is kept, so the builder's spend total and the publication history stay true. Refused with 409 while the build is still being generated, is waiting for you, or has a publication in progress; try again when that finishes. A build in another organization is a 404. Requires sites.create.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteBuildId (path) | Uuid | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 409 · 429