Hi all,
Hope you’ve had a wonderful Christmas!
I am currently receiving an error 400 with the content “Request body doesn’t contain valid json” when attempting to use the add/mailbox
API endpoint.
I am using the syntax specified in the API reference, as follows:
curl --include \
--request POST \
--header "Content-Type: application/json" \
--header "X-API-Key: api-key-string" \
--data-binary "{
\"local_part\": \"just-testing\",
\"domain\": \"mydomain.tld\",
\"name\": \"Just Testing\",
\"quota\": \"3072\",
\"password\": \"testing\",
\"password2\": \"testing\",
\"active\": \"1\"
\"force_pw_update\": \"1\"
\"tls_enforce_in\": \"1\"
\"tls_enforce_out\": \"1\"
}" \
'https://mymx.tld/api/v1/add/mailbox'
I have two installations, and am having this issue on both. This is my first time using the API, so I could be doing something wrong, but am a little confused seeing as other endpoints are fine.
One installation is running Mailcow 2022-10a, and the other (primary) is running 2022-12a.
Many thanks in advance for your assistance with this.