Clarity

 View Only

Rest API - Change action item assignee

  • 1.  Rest API - Change action item assignee

    Posted Jun 01, 2023 04:07 PM
    Hello everyone,
     
    I'm testing some possibilities with Rest API for a client, and on the page <servername>/niku/rest/describe/index.html#, several options for Action Items are displayed. However, I have the need to change the "assignee" to another user who will be responsible for responding to the action item in their place.
     
    But when I make the request, I receive the message "Unauthorized," even though I am an administrator and have all the access rights.
     
    Does anyone know about the limitations of the REST methods for action items or what is possible to do?
     
    I tried the request with two users, process_admin and another administrator user with all access rights, and the result was the same.
     
    Thank you in advance.
    {
      "_internalId": 501XXX1,  
      "assignmentId": 501XXX0, 
      "assigneeId": { -- I changed the data below informing the new user who should assume the action item
        "displayValue": "XXXXX", -- Resource full name
        "id": 5021234 -- user internal id
      }
    }