Skip to main content
Help Center API Reference

Discard the draft

Discards the draft that waits for review. The live revision does not change. Send the draft revision as draftRevision.

POST
/v2/help_center/api_specs/{specId}/discard_draft
Authorizationstringheaderrequired

API key as Bearer token. Use: Authorization: Bearer sk_...

specIdstringrequired

The API reference version (id from the list).

Example: 66f7d0c1a2b3c4d5e6f70812
Featurebase-Versionenum<string>header

API version for this request. Defaults to your organization's configured API version if not specified.

Available options: 2026-08-19.orbit, 2026-01-01.nova, 2025-12-12.clover
Example: 2026-08-19.orbit

Body

application/json
draftRevisionintegerrequired

The revision of the draft to discard.

Required range: 1 <= x
Example: 8

Response

application/json

Success

discardedenum<boolean>required
Available options: true
Example: true
objectenum<string>required
Available options: help_center_api_spec_draft
Example: help_center_api_spec_draft
revisionnumberrequired
Example: 8