Skip to content

Delete post by ID

Fraser Redford edited this page Apr 15, 2021 · 3 revisions

DELETE author/<str:author_id>/posts/<str:id>/

This will allow the deletion of a specific post by author of the post.

Request Header

Basic authorization (base64 encoded username:password):
--header "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="

or token authorization is required:
--header "Authorization: Token 9d9ed917fe1ead2d1e27ac7dc233348ed2e3d4c0"

Request Requirements

No body required

Sample Request

No request required

Sample Response

No body response sent

Response Codes

  • 200 OK upon a successful deletion of a post
  • 400 BAD REQUEST if bad information is passed in the request
  • 403 FORBIDDEN if a user is not authenticated

Clone this wiki locally