At one point I had made two POSTs via the API where the request was in error because I had written it badly, here are the logs of the two requests in question (it was to add a blacklisted IP):
{
"time": 1706296989,
"uri": "\/api\/v1\/edit\/fail2ban",
"method": "POST",
"remote": "XXXX:XXXX:XXXX:e1c0:50b3:14b4:3745:accc",
"data": "attr='', items=''"
},
{
"time": 1706296764,
"uri": "\/api\/v1\/edit\/fail2ban",
"method": "POST",
"remote": "XXXX:XXXX:XXXX:e1c0:50b3:14b4:3745:accc",
"data": "attr='', items=''"
}
is there a link? an impact?
Knowing that in the meantime, I’ve managed to make other requests, modifications, etc?
To reproduce the problem :
- Go to Access > Administrators.
- In the API section, enter your IP address and activate the API.
- In a new tab, go to the API and connect using your API key (visible after API activation in the Access > Administrators > API section).
- Once on the API and connected via the key, simply make a “GET” request to “domain-admin”, for example.
- Under “GET /api/v1/get/domain-admin/all” do “Try it out” then “Execute”.
- Once done, you can “Clear” the result and “Cancel”, then return to the top and disconnect the API key.
- Now go back to the tab where you’ll find the Access > Administrators page, try removing your IP address and unchecking the API’s active status, then apply the change, the error will appear.
Access > Administrators = https://mail.domain.tld/admin
API = https://mail.domain.tld/api/
“GET /api/v1/get/domain-admin/all” = https://mail.domain.tld/api/#/Domain%20admin/Get%20Domain%20Admins