diff options
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -32,7 +32,7 @@ - ~~Creating post~~ - ~~Updating post~~ - [Getting post](#getting-post) - - ~~Deleting post~~ + - [Deleting post](#deleting-post) - [Rating post](#rating-post) - ~~Adding post to favorites~~ - ~~Removing post from favorites~~ @@ -647,6 +647,27 @@ data. Retrieves information about an existing post. +## Deleting post +- **Request** + + `DELETE /post/<id>` + +- **Output** + + ```json5 + {} + ``` + +- **Errors** + + - the post does not exist + - privileges are too low + +- **Description** + + Deletes existing post. Related posts and tags are kept. + + ## Rating post - **Request** |