RestAPI Change Asset issues

RestAPI Change Asset issues

Hey,

So I'm playing around with a Powershell script to use the RestAPI to put in Change Tickets...I've got it all working, except for some reason I can't get the Asset to come in, it's just blank for some reason, even though the asset I've used in the InputData below is the exact name of the asset already in the CMDB.  I've obviously changed the name of the entry to contoso.microsoft.com, but the asset I'm using matches exactly to the asset in CMDB.  All the other information is passing across, but for some reason, the asset isn't.

Thanks for the help,

Here's a copy of the data I'm using...

$inputdata = @"
  {
    "operation": {
        "details": {
            "title": "Windows Patch Night",
            "technician": "administrator",
            "stagename": "close",
            "reasonforchange": "Patch updates",
            "statusname": "completed",
            "statuscomments": "This was an automated patch through WSUS",
            "priority": "normal",
            "requestedby": "administrator",
            "risk": "low",
            "assets": [
                contoso.microsoft.com
            ],
            "impact": "medium",
            "urgency": "normal",
            "changemanager": "administrator",
            "changetype": "standard",
            "category": "Patching",
            "group": "Server",
            "description": "Windows Patches",
            "scheduledstarttime": "2 Nov 2018, 21:00:00",
            "servicesaffected": [
                "email",
                "hardware"
            ]
           
        
    }
  }
}
"@

                  New to ADSelfService Plus?