Delete draft content

deleteDraftContent(input: DeleteDraftContentInput!): DeleteDraftContentPayload!

Requires project.files.write; API keys also need delete scope.

Arguments

ArgumentTypeRequired
inputDeleteDraftContentInput!Yes

Input fields

input

DeleteDraftContentInput

FieldTypeRequiredDescription
projectReferenceStringNo
entityIdID!YesSource-file path or UUID whose pending updates are discarded without deleting committed source.
entityTypeDraftEntityType!YesRetained legacy hint.
branchIdIDNo
branchReferenceStringNoBranch name or UUID. Conflicting branchId aliases are rejected; omit/null for main.

Response

Returns DeleteDraftContentPayload!. Open the type for its fields and nested types.

FieldTypeDescription
okBoolean!Always true: the draft was discarded, or was already absent, or the file reference is unknown.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation DeleteDraftContent($input: DeleteDraftContentInput!) {
  deleteDraftContent(input: $input) {
    ok
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "entityId": "00000000-0000-4000-8000-000000000001",
    "entityType": "page"
  }
}