Herald
OpenapiLegal

Discard the staged draft.

Admin — requires first-party Bearer + `settings.manage` (realm pinned by the session token). Idempotent: discarding a missing draft returns 204. The published version table is untouched.

DELETE
/api/legal/admin/agreements/{agreementType}/draft

Admin — requires first-party Bearer + settings.manage (realm pinned by the session token). Idempotent: discarding a missing draft returns 204. The published version table is untouched.

Path Parameters

agreementType*string

Agreement type: terms_of_service | privacy_policy

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/legal/admin/agreements/string/draft"
Empty
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}