You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/02/14 09:56:17 UTC
[james-project] 06/09: JAMES-3048 WebAdmin doc: add ContentType
header upon JSON submission
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 215ba7242a68d2e0aaf8c5bde0b45dc7f3bff287
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Feb 12 14:05:40 2020 +0700
JAMES-3048 WebAdmin doc: add ContentType header upon JSON submission
---
src/site/markdown/server/manage-webadmin.md | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/site/markdown/server/manage-webadmin.md b/src/site/markdown/server/manage-webadmin.md
index 96fd152..559bf4d 100644
--- a/src/site/markdown/server/manage-webadmin.md
+++ b/src/site/markdown/server/manage-webadmin.md
@@ -294,7 +294,9 @@ Response codes:
### Create a user
```
-curl -XPUT http://ip:port/users/usernameToBeUsed -d '{"password":"passwordToBeUsed"}'
+curl -XPUT http://ip:port/users/usernameToBeUsed \
+ -d '{"password":"passwordToBeUsed"}' \
+ -H "Content-Type: application/json"
```
Resource name usernameToBeUsed representing valid users,
@@ -1453,7 +1455,9 @@ This is a temporary workaround for the **Ghost mailbox** bug encountered using t
You can use the mailbox merging feature in order to merge the old "ghosted" mailbox with the new one.
```
-curl -XPOST http://ip:port/cassandra/mailbox/merging -d '{"mergeOrigin":"id1", "mergeDestination":"id2"}'
+curl -XPOST http://ip:port/cassandra/mailbox/merging \
+ -d '{"mergeOrigin":"id1", "mergeDestination":"id2"}' \
+ -H "Content-Type: application/json"
```
Will scedule a task for :
@@ -2533,7 +2537,8 @@ The scheduled task will have the following type `clear-mail-queue` and the follo
```
curl -XPATCH http://ip:port/mailQueues/mailQueueName?delayed=true \
- -d '{"delayed": false}'
+ -d '{"delayed": false}' \
+ -H "Content-Type: application/json"
```
This request should have the query parameter *delayed* set to *true*, in order to indicate only delayed mails are affected.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org