Legacy Dev Forum Posts

 View Only

Sign Up

UsersAPI does not change the agent name

  • 1.  UsersAPI does not change the agent name

    Posted 06-05-2025 18:28

    marcoflps | 2023-09-29 11:48:31 UTC | #1

    Hi,

    Im trying to update the agent name using JavaSDK (180.0.0), but the changes dont work.

    I receive statuscode 200 in the request. but when accessing the agent's profile, the name remains old

    var user = usersApi.getUser(userID, null, null, null);

    var updateUser = new UpdateUser(); updateUser.setName("[AeC] Camila Ferreira Rodrigues"); updateUser.setVersion(user.getVersion());

    var request = new PatchUserRequest(); request.setUserId(user.getId()); request.setBody(updateUser); usersApi.patchUser(request);

    {"date":"2023-09-29 08:14:26","level":"debug","method":"PATCH","url":"https://api.mypurecloud.com/api/v2/users/f14078fa-0999-43b9-9897-edd71f4cd5cf","requestHeaders":{"Authorization":"[REDACTED]","User-Agent":"PureCloud SDK/java","Accept":"application/json","purecloud-sdk":"180.0.0","Content-Type":"application/json"},"statusCode":200,"requestBody":"{\"name\":\"[AeC] Camila Ferreira Rodrigues\",\"primaryContactInfo\":[],\"addresses\":[],\"images\":[],\"version\":20,\"profileSkills\":[],\"locations\":[],\"groups\":[],\"state\":\"active\",\"certifications\":[]}"}


    Ebenezer_Osei | 2023-10-03 14:49:43 UTC | #2

    Hi,

    Please open a case with Genesys Cloud Care to investigate your issue.

    Best


    system | 2023-11-03 14:50:07 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 22292