Legacy Dev Forum Posts

 View Only

Sign Up

Cannot route using AgentAssignmentAlerting when assigneeId is set

  • 1.  Cannot route using AgentAssignmentAlerting when assigneeId is set

    Posted 06-05-2025 18:30

    TBuyukkilic | 2024-05-26 20:17:43 UTC | #1

    I'm trying to route an Idle workitem using the patch workitem endpoint with the following payload:

    PATCH /api/v2/taskmanagement/workitems/:workitem_id

    {

    "assigneeId": "9b149756-6b8c-4221-ab25-ff38bcec4b08", "assignmentOperation": "AgentAssignmentAlerting" }

    However I noticed that if the assigneeId is already set in the workitem, this call won't work. The assigneeId is needed to set the assignmentOperation to AgentAssignmentAlerting, but if the assigneeId is already set in the workitem, then a 400 error is returned:

    {

    "message": "Cannot perform assignment without an assignee", "code": "invalid.input.missing.assignee", "status": 400, "messageParams": {}, "contextId": "3179217c-481d-4696-b8e5-0c23a70fb482", "details": [], "errors": [] }

    This really looks like a bug, the endpoint probably sees that the value is not changing, so it ignores the assigneeId, but then it's needed for the AgentAssignmentAlerting. When there is no assigneeId set, then this works.

    Update: closed without an answer, this still hasn't been fixed.


    system | 2024-04-14 11:43:15 UTC | #2

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 25220