Use the promode in API explorer, like example under. Then it works
{
"name": "Workitem with custom attributes",
"typeId": "1982a05e-567a-4243-bf2b-993c7fdsa9d",
"customFields": {
"Field_1": "TestValue"
}
}
------------------------------
Eystein Kylland
Systemutvikler Genesys Applikasjonsspesialist
------------------------------