TEASEDocs
API ReferencePages & Publish

Discard draft changes

Reverts the draft snapshot back to the currently-published state, throwing away unpublished edits. Optionally scope to specific domains; omit the body to discard all. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

POST
/api/admin/discard
curl -X POST "https://example.com/api/admin/discard" \  -H "Content-Type: application/json" \  -d '{    "domains": [      "onlydasha.com"    ]  }'
{  "ok": true,  "domains": [    "onlydasha.com"  ]}
{  "detail": {    "code": "domain_not_found",    "message": "Domain 'onlydasha.com' is not registered"  }}