Skip to main content

Post Management (Read & Delete)

The Post Management feature allows admins and moderators to manage posts created in the community/news section.
Posts can only be read and deleted (no editing in this feature set).


Fields

FieldTypeDescription
IDStringUnique identifier of the post.
TitleStringTitle of the post.
SlugStringURL-friendly identifier (e.g., introduction-to-python).
ContentTextMain content of the post.
AuthorStringThe creator of the post.
ThumbnailStringImage thumbnail (URL or upload reference).
Created DateDateTimeWhen the post was created.
Modified DateDateTimeLast time the post was updated.

1. Read Posts

Admins can fetch all posts with metadata.

Example Response (JSON):

[
{
"id": "post-001",
"title": "Introduction to Python",
"slug": "introduction-to-python",
"content": "Python is a versatile programming language...",
"author": "Alice",
"thumbnail": "python-thumbnail.png",
"createdDate": "2025-02-01T10:15:00Z",
"modifiedDate": "2025-02-01T10:15:00Z"
},
{
"id": "post-002",
"title": "5 Tips for Better Coding",
"slug": "5-tips-better-coding",
"content": "Here are 5 tips to improve your code quality...",
"author": "Bob",
"thumbnail": "coding-tips.png",
"createdDate": "2025-02-03T08:45:00Z",
"modifiedDate": "2025-02-03T09:00:00Z"
}
]
2. Delete Post
Admins can delete inappropriate or outdated posts.

Steps:

Go to Backoffice → Community → Posts.

Locate the post you want to remove.

Click Delete 🗑️.

Confirm deletion.

Example Request:

json
Copy code
{
"id": "post-001",
"action": "delete"
}
Response:

json
Copy code
{
"success": true,
"message": "Post deleted successfully"
}
Best Practices
Only delete posts that are spam, irrelevant, or violate guidelines.

Use Created Date and Modified Date to track content lifecycle.

Archive or soft-delete if history needs to be retained.

Maintain thumbnail consistency for a clean community/news feed.