Trying various functions from the Api I found the:
Creating Config Objects :: ignore_on_error flag (see Api - Icinga 2) not working as expected.
See attached image for scenario where I tried to create a host while one with same name already present. From what the docs say, I would expect the call to return a 200 even though there was an error condition, right? Or am I getting something wrong.
You’re right I have also just tested it and getting only 500 back. And after a few minutes of debugging the code, I found out the cause. Namely at this point the ignore_on_error attribute is not considered if the condition is true. You can open an issue on GH and if you want also a patch to it .