Topic: 404 Error when creating Mail User via API
==== Required information ====
- iRedMail version (check /etc/iredmail-release): v0.9.5-1
- Linux/BSD distribution name and version: CentOS 6.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====
I have updated the settings.py file to enable the API and rebooted the server...
Ran the command below to create a user via an API call and received a 404 error:
c:\cURL>curl -X POST -i -b cookie.txt -k -d "cn=Some Company&mailQuota=1024" https://mx1.mydomain.com/api/user/0000@ … domain.com
HTTP/1.1 404 Not Found
Server: nginx
Date: Mon, 31 Oct 2016 21:52:49 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.