All release of Smarts
Device is not part of the topology
Suggestion is to first create the instance and then update the OccuredOn field so that Element Class and Element Name gets enriched
curl -XPOST -H 'Content-Type: application/json' http://<SAM_IP/FQDN>:8080/smarts-edaa/msa/<domain_name>/types/Router/instances -d "{'Router' : { 'Name': 'NameOftheInstance', 'DisplayName': 'MyInst' } }"
curl -XPOST -H 'Content-Type: application/xml' http://<SAM_IP/FQDN>:8080/smarts-edaa/msa/<domain_name>/instances/ICS_Notification::NOTIFICATION-Host_test_Down/relationships/OccurredOn -d '<link href="/smarts-edaa/msa/<domain_name>/instances/Router::NameOftheInstance"/>'
curl -XPUT -H 'Content-Type: application/json' http://<SAM_IP/FQDN>:8080/smarts-edaa/msa/<domain_name>/instances/ICS_Notification::<Notificatoin Name>?alt=json -d ' { "ICS_Notification": { "EventText": "MyEventText"
}
}'