Skip to content

Files

Latest commit

7bd9027 · Nov 19, 2022

History

History
48 lines (37 loc) · 972 Bytes

delete-post-by-id.md

File metadata and controls

48 lines (37 loc) · 972 Bytes
title method slug
Delete post by ID
DELETE
/api/v1/posts/delete-post-by-id
https://yourdomain.com/api/v1/post/delete

Headers

Key Value Description
Authorization Bearer {{AuthToken}} Authorization token
Content-Type application/json

Body

Fields Type Description Required
postId String Post ID true

Example

{
  "postId": "1"
}

Response

Fields Type Description
status.code Integer Response code from server
status.type String Response status type (success/fail)

Example

{
  "status": {
    "code": 200,
    "type": "success"
  }
}