Legacy Dev Forum Posts

 View Only

Sign Up

Patching users doesnt work

  • 1.  Patching users doesnt work

    Posted 06-05-2025 18:12

    stianbranden | 2017-09-18 11:02:56 UTC | #1

    Hi,

    We are having some trouble with updating user information. We can see that there is a version change but none of the fields are updated.

    In the example pasted here, department, title and manager should have been updated.

    Request to https://api.mypurecloud.ie/api/v2/users/5ddd6495-764a-4aa6-bdba-70df32716bbb Body { "name":"REMOVED", "department":"Sweden", "title":"CCC Teamleader SE", "manager":"7abab5a9-199d-49ea-aae8-abb81efd1bca", "state":"active", "email":"REMOVED", "version":"11" }

    Response: { "id": "5ddd6495-764a-4aa6-bdba-70df32716bbb", "name": "REMOVEDn", "chat": { "jabberId": "REMOVED" }, "department": "ECC Sales", "email": "REMOVED", "primaryContactInfo": [ { "address": "REMOVED", "mediaType": "EMAIL", "type": "PRIMARY" } ], "addresses": [], "state": "active", "title": "External without pay", "username": "REMOVED", "version": 12, "selfUri": "/api/v2/users/5ddd6495-764a-4aa6-bdba-70df32716bbb" }

    KR SB


    tim.smith | 2017-09-18 13:30:28 UTC | #2

    Can you provide the correlation ID? I gave this a try and all three of those fields were updated as expected.


    stianbranden | 2017-09-18 19:06:42 UTC | #3

    Correlation ID: c9d3ecd6-9b90-4dcc-98e2-dd4a7adc792a


    tim.smith | 2017-09-19 18:43:51 UTC | #4

    Try taking "state": "active" out of your request and see if it works correctly. I think that's the issue. If you can confirm that works for you, I'll open an issue for that.


    stianbranden | 2017-09-20 09:06:32 UTC | #5

    That worked!

    Will you post an issue for this to be fixed?


    tim.smith | 2017-09-20 14:13:07 UTC | #6

    This has been reported as CORE-7184.


    system | 2017-10-21 14:13:08 UTC | #7

    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: 1811