24 May
2016
24 May
'16
9:20 p.m.
Thanks for the new HTTP API.
I get the API with some commands up and running, but I'm still not able to create folder.
curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxCreate",{"user":"user@example.org","mailbox":["INBOX/TEST"]},c01]]' https://xxx.xxx.xxx.xxx.:8080/doveadm/v1
and also
curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxList",{"user":"user@example.org","mailboxMask":["INBOX/TEST"]},c01]]' https://xxx.xxx.xxx.xxx.:8080/doveadm/v1
doesn't work.
It /should/ create INBOX/TEST -- but doveadm always says it's "Invalid JSON input".
What am I doing wrong?
Peer