it's actually not so simple that's why it doesn't work with the script above (wrong subnet utilization). we want to improve our API and bring native support for such operation. could you please describe the problem you want to solve (for example mark IP as used during VM machine setup, or new IP phone delpoyment...) thanks in advance for your help.
The team that was working on this developed some scripts that mark the IP address correctly as used. However, I do not have the script, I'd need to ask them for it. Anyway, we tested their solution in our lab environment and it worked flawlessly. We can see IP address utilization properly on all the IPAM pages. Again, I will ask for the script and will forward it to you then. Thanks again.
This would be a very good topic to build a blog post around. Would you be willing to explore a way we could do this?