diff options
author | rinpatch <rinpatch@sdf.org> | 2019-05-18 13:37:38 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-05-18 13:37:38 +0300 |
commit | 5ece901af3e887664653c79c5e61618cc5cf0ecf (patch) | |
tree | 93fc7c3bdb70348d5ef91fa9f7db3293b17f9854 /docs/api/pleroma_api.md | |
parent | fd920c897339b9cedea042dd6698d14380cedae7 (diff) | |
parent | 8e9a764dfcde315afd055c8e63543bfca24cc41b (diff) | |
download | pleroma-5ece901af3e887664653c79c5e61618cc5cf0ecf.tar.gz |
Resolve merge conflicts and remove IO.inspects
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` |