From dbf29cf71accaad46beb371eb829294fe702c186 Mon Sep 17 00:00:00 2001 From: John Supplee Date: Fri, 4 Oct 2019 17:32:50 +0200 Subject: [PATCH] Update HTML API docs for mail users --- management/templates/users.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/management/templates/users.html b/management/templates/users.html index dd2fefbe..31e848fd 100644 --- a/management/templates/users.html +++ b/management/templates/users.html @@ -117,10 +117,24 @@ - + + + + + + + + + + + + + + +
Verb Action
GET(none) Returns a list of existing mail users. Adding ?format=json to the URL will give JSON-encoded results.
POST/add Adds a new mail user. Required POST-body parameters are email and password.
POST/addAdds a new mail user. Required POST-body parameters are email and password. Optional parameters: privilege=admin and quota
POST/remove Removes a mail user. Required POST-by parameter is email.
POST/privileges/add Used to make a mail user an admin. Required POST-body parameters are email and privilege=admin.
POST/privileges/remove Used to remove the admin privilege from a mail user. Required POST-body parameter is email.
GET/quotaGet the quota for a mail user. Required POST-body parameters are email and will return JSON result
POST/quotaSet the quota for a mail user. Required POST-body parameters are email and quota.

Examples: