diff options
author | kaniini <nenolod@gmail.com> | 2019-05-14 12:06:08 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-05-14 12:06:08 +0000 |
commit | 4e69d1239afdf97fe84a1772faa242b8e362b369 (patch) | |
tree | b37250ceeea947d284cbff32fa5665a3bbdd15f9 /docs/api/pleroma_api.md | |
parent | cdcdbd88da76f18c21da7f6f15a29883044902c8 (diff) | |
parent | c1665fd94de456768ddd59b8873d1bd26878970d (diff) | |
download | pleroma-4e69d1239afdf97fe84a1772faa242b8e362b369.tar.gz |
Merge branch 'feature/disable-account' into 'develop'
[#694] allow users to disable their own account
See merge request pleroma/pleroma!895
Diffstat (limited to 'docs/api/pleroma_api.md')
-rw-r--r-- | docs/api/pleroma_api.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md index 190846de9..dd0b6ca73 100644 --- a/docs/api/pleroma_api.md +++ b/docs/api/pleroma_api.md @@ -61,6 +61,15 @@ Request parameters can be passed via [query strings](https://en.wikipedia.org/wi * Response: JSON. Returns `{"status": "success"}` if the deletion was successful, `{"error": "[error message]"}` otherwise * Example response: `{"error": "Invalid password."}` +## `/api/pleroma/disable_account` +### Disable an account +* Method `POST` +* Authentication: required +* Params: + * `password`: user's password +* Response: JSON. Returns `{"status": "success"}` if the account was successfully disabled, `{"error": "[error message]"}` otherwise +* Example response: `{"error": "Invalid password."}` + ## `/api/account/register` ### Register a new user * Method `POST` |