HI.
I'm using Powershell. With this part of the script, it should work:
********************************************************************
********************************************************************
$user = "USER"
$pass= "PASSWORD"
$uri = "https://my.ca.uim/rest/alarms/createAlarm"
$Headers = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$($user):$($pass)"))};
$json = @{
assignedBy = "";
assignedTo = "";
custom1 = "";
custom2 = "";
custom3 = "";
custom4 = "";
custom5 = "";
devId = "";
domain = "";
hostname = "";
hub = "";
level = $Level;
message = $Message
metId = "";
nas = "";
origin = "";
prevLevel = "";
probe = "";
robot = "";
severity = $Severity;
source = $Source;
subsystem = $Subsys;
subsystemId = $Subsysid
suppressionCount = "0";
suppressionKey = $Suppkey;
visible = "true"
} | ConvertTo-Json
Invoke-RestMethod -Uri $uri -Headers $headers -ContentType "application/json" -Method Post -Body $json
********************************************************************
********************************************************************
I hope, this is what you looked for.
Daniel