Maybe you can start of with something similiar and update sets through powershell:
Import-Module -Name PsIni
$path = 'C:\test\config.ini'
$ini = Get-IniContent -FilePath $path
$ip = $ini['SIEM']['IP']
$key = $ini['SIEM']['KEY']
$DefineRefSet = "DEMO_IP"
$myheads = @{'SEC' = $key }
$mylist = Get-Content c:\test\mylist.txt
ForEach($value in $mylist) {
$url1 = "https://$ip/api/reference_data/sets/$DefineRefSet"
$url2 = "?value=$value"
$completeurl = $url1+$url2
$json_data = Invoke-RestMethod -Uri $completeurl -Headers $myheads -Method Post
}
/T
------------------------------
Tobias Söderberg
------------------------------