Delete post

Delete a posts

DELETE
/posts
AuthorizationBearer <token>

JWT Bearer token authentication

In: header

Delete post request body

idstring

Response Body

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"
}