If you're looking to delete a forum thread via the /en/api/forum/threads/delete endpoint, here's a guide to help you understand its usage:

📌 API Overview

This endpoint allows authorized users to delete a specific forum thread by providing its unique identifier.

  • Method: DELETE
  • Path: /en/api/forum/threads/delete
  • Required Parameters:
    • thread_id (string): The ID of the thread to delete.
    • token (string): Authentication token for user verification.

🔒 Permissions

  • Only moderators or thread owners can use this API.
  • Ensure your token has the necessary scopes (e.g., delete_threads).

📱 Example Request

DELETE /en/api/forum/threads/delete HTTP/1.1
Host: yourdomain.com
Authorization: Bearer <your_token>
Content-Type: application/json

{
  "thread_id": "12345"
}

📜 Response

  • Success (200):
    {"status": "success", "message": "Thread deleted successfully."}
    
  • Error (403):
    {"error": "Forbidden", "message": "You don't have permission to delete this thread."}
    

For more details on API usage, check our official documentation.

delete_thread_icon