[!! SOLVED BELOW !!] Using the API Post to rest/servicedeskapi/request, (docs) I can insert a JSM ticket, but when trying to set an asset object, it fails with a 400 (There was an error parsing JSON. Check that your request body is valid). The custom field (16353) is backed by the JSM Asset object and is on the create screen. 123456 would be my workspaceId and objectId 49 is the correct asset object value I want to set this field to.
{
"serviceDeskId": "16",
"requestTypeId": "17",
"requestFieldValues": {
"summary": "Summary here",
"description": "Descr here"
"customfield_16353": [
{
"workspaceId": "123456",
"Id": "123456:49",
"objectId": "49"
}
]
}
}I also tried this approach with the same error.
{
"serviceDeskId": "16",
"requestTypeId": "17",
"requestFieldValues": {
"summary": "Summary here",
"description": "Descr here"
"customfield_16353" : [{"id": "123456", "objectId": "49", "workspaceId": "123456"}]
}
}