Delete post
Delete a posts
Delete a posts
Authorization
bearerAuth AuthorizationBearer <token>
JWT Bearer token authentication
In: header
Request Body
application/json
Delete post request body
id*string
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:8000/api/v1/posts" \ -H "Content-Type: application/json" \ -d '{ "id": "string" }'Empty
{
"message": "You do not have permission to perform this action.",
"code": "NOT_ENOUGH_PERMISSION"
}{
"message": "Post not found",
"code": "POST_NOT_FOUND"
}{
"message": "Something went wrong!",
"code": "SERVER_ERROR"
}