Deleting Blog Categories
Endpoint: DELETE /admin/blog_categories/{blog_id}
Purpose
This API allows administrators to delete a specific blog entry by its unique ID. It is used when a blog is no longer needed and should be permanently removed from the system.
Path Parameters
Parameter | Type | Description |
---|---|---|
blog_id | Integer | The unique ID of the blog post |
Query Parameters
No query parameters for this endpoint.
Use Case
When an administrator wants to remove a blog entry entirely (e.g., it's outdated, incorrect, or no longer relevant), this endpoint is used to delete the blog from the system.
Request Body
This endpoint does not require a request body.
Response
A successful request returns a 204 No Content response, indicating that the blog has been successfully deleted. No response body is returned.
Deleting Blog Category
Endpoint: DELETE /admin/blogs/categories/{category_id}
Purpose
This API allows administrators to delete a specific blog category by its unique identifier. It is used when a category is no longer needed or should be removed for clarity or restructuring of blog content.
Path Parameters
Parameter | Type | Description |
---|---|---|
category_id | String | Unique ID of the blog category. |
Query Parameters
No query parameters for this endpoint.
Use Case
Administrators use this endpoint to permanently remove a blog category from the system. This helps keep the blog category list clean and relevant, especially when consolidating or removing unused categories.
Request Body
No request body is needed for this operation.
Response
A successful request returns a 204 No Content response, indicating that the blog category has been successfully deleted. No response body is returned.