I have an API that lists hundreds of IPs that need to be added to an asset group. Unfortunately, the amount of IPs causes the URL length to exceed maximum length. Are there any workarounds for this? I am using PowerShell. My initial thought was to add -Body $body where $body is an xml form of the IPs to add but through testing, it seems as if the asset group API is not accepting XML POST data?
Let me know what ideas anyone has. A snippet of my script is below