Skip to main content
DELETE
Discard a page draft

Authorizations

Authorization
string
header
required

Bearer token: a shop API key (WEAVERSE_API_KEY), a scoped API key or a delegated MCP OAuth token; translation-unit routes also accept a project-bound translation agent token. Each operation lists the scope it requires; the scope table is in the API description.

Path Parameters

projectId
string
required
pageId
string
required

Body

application/json
expectedHeadVersionId
string
required

The headVersionId of the draft being discarded, exactly as GET returned it. The discard is refused when the draft head has moved.

Minimum string length: 1

Response

Discarded

The response is of type object.