Delete Draft post from the API - getting not_found error
@nitinkg Nit
·
2026-04-22
·
via Discourse Meta - Latest posts
Hi, I’m trying to delete a draft using the API: DELETE /drafts/{draft_key}.json The draft exists (verified via GET /drafts.json ) and I’m using the correct draft_key and sequence . API Request (Postman / backend) DELETE https://<base_url>/drafts/{draft_key}.json Headers: Api-Key: <api_key> Api-Username: <username> Content-Type: application/x-www-form-urlencoded / application/json Body (tried both): x-www-form-urlencoded: draft_key=new_topic_xxxxx sequence=12 or raw JSON: { "draft_key": "new_topic_xxxxx", "sequence": 12 } Response { "errors": ["The requested URL or resource could not be found."], "error_type": "not_found" } From UI (works) The same delete works from the browser using: DELETE /drafts/{draft_key}.json form data: draft_key + sequence session cookies + CSRF token Question Is draft deletion supported via API key auth, same as the other APIs? If supported, what is the correct way to call this endpoint? Thanks.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。