This section provides an overview of the API endpoints related to thread management within our forum. These endpoints are designed to facilitate the creation, modification, and deletion of threads.
API Endpoints
Create Thread: Use this endpoint to create a new thread in the forum. It requires a valid session token and the necessary thread details.
- URL:
/en/api/forum/threads
- Method: POST
- Required Parameters:
session_token
,title
,content
,category_id
- URL:
Update Thread: This endpoint allows you to update an existing thread. You must have the appropriate permissions and a valid session token.
- URL:
/en/api/forum/threads/{thread_id}
- Method: PUT
- Required Parameters:
session_token
,title
,content
,category_id
- URL:
Delete Thread: To delete a thread, you need to have the necessary permissions and a valid session token.
- URL:
/en/api/forum/threads/{thread_id}
- Method: DELETE
- Required Parameters:
session_token
- URL:
Usage Example
Here's an example of how you might use the API to create a new thread:
POST /en/api/forum/threads HTTP/1.1
Host: example.com
Content-Type: application/json
{
"session_token": "your_session_token",
"title": "Introducing Our New API",
"content": "This is a thread about the new API features we've added.",
"category_id": 5
}
Further Reading
For more detailed information about our API and its usage, please refer to our API Documentation.