Genesys Cloud - Developer Community!

 View Only

Sign Up

API request for creating Work Item with custom attributes

  • 1.  API request for creating Work Item with custom attributes

    Posted 2 hours ago

    Has anyone used the APIs to create work items with custom attributes?

    The documentation (https://developer.genesys.cloud/commdigital/taskmanagement/task-management-custom-attributes) shows they are added as a key value pair:
    {

     "name": "Workitem with custom attributes", 

     "customFields" : { "custom_attribute_text":"Text for custom attribute", "custom_attribute_2_integer":100 }

     }

    But when using the API explorer (create, patch or bulk add work items), custom attributes are added as a key object pair:
    {
      "name": "dumm",
      "customFields": {
        "custom_key": {
          "some_key": "some_value"
        }
      }
    }

    It's not clear how to format the object. Any ideas? Or is this a bug in the API explorer?


    #PlatformAPI

    ------------------------------
    Stuart Gielen
    IT Lead
    ------------------------------