Hi, @Riddhi Singh
I would check two things here.
First, make sure service_group is the exact Field Key from the custom attribute schema, not only the field name/display name. The workitem must reference a worktype that is linked to a schema containing that custom attribute. If the field key is different, Genesys will reject it as an unexpected property.
Second, if you are testing from API Explorer, try using Pro Mode and paste the raw JSON directly. There are some known discussions around API Explorer handling the customFields object in a confusing way for workitems.
The body should be something like this, using the exact field key from your schema:
{
"name": "Workitem with custom attributes",
"autoStatusTransition": true,
"typeId": "96a8fee9-9b06-XXX0-9658-6d5353f4a632",
"customFields": {
"your_exact_field_key": "Text for custom attribute"
}
}
So I would validate the schema attached to the worktype, copy the exact custom attribute field key, and then retry the request using API Explorer Pro Mode or Postman.
------------------------------
Arthur Pereira Reinoldes
------------------------------