Here is an example of using PowerShell script. This example sets a User-ID mapping entry on a firewall.
#Use TLS1.2 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $API_KEY = 'YOUR_API_KEY_HERE' $FW_FQDN = 'fw1.example.local' $TYPE = 'user-id' $VSYS = 'vsys1' $ACTION = 'set' $CMD= "<uid-message><version>1.0</version><type>update</type><payload><login><entry%20name=""username-here""%20ip=""192.168.1.1""%20timeout=""0""/></login></payload></uid-message>" $URL = "https://$FW_FQDN//api/?key=$API_KEYtype=$TYPE&vsys=$VSYS&&action=$ACTION&cmd=$CMD" $Output = Invoke-WebRequest -Uri $URL Write-Host "User-ID Data Updated"