Skip to content

Post API Delete Post

Dominik Magdaleński edited this page Jul 3, 2019 · 1 revision

Post API - /delete_post

URL: https://dive-networks.com/api/rpc/34/delete_post?id=post-id-here

HTTP Method: DELETE

Required HTTP Header: Authorization: Token your-api-token-here

Required query parameter: id

Successful response

Status: 204 No content

Example (HTTPie)

Let's delete Post with "id": 126:

HTTPie request:

http --follow DELETE https://dive-networks.com/api/rpc/34/delete_post?id=126 Authorization:"Token your-api-token-here"

HTTPie response:

HTTP/1.1 204 No Content
(...headers...)