0 Replies Latest reply on Feb 24, 2015 1:21 AM by wimvandijck

    Updating person details using REST interface with Curl

    wimvandijck

      Hi,

       

      I'm new to Jive, and I believe I have searched through the discussions and didn't find a solution, so if I mislooked, please be gentle .

       

      We're trying to debug some issues while integrating Jive into our Identity Management system.

      I'm simply trying to update a person using curl with a json file as input.

      I'm trying to update an attribute called 'Department'.

      The command I'm using is

       curl --include -k -X PUT -H "Content-Type: application/json" --data @/var/tmp/2069.json -u credentials https://jiveserver/api/core/v3/people/2069
      

       

      The input file is:

      {
        "emails" : [{"jive_label" : "Email", "primary" : true, "type" : "work", "value" : "wim.vandijck@eurclear.com"} ],
        "jive" : {"username" : "503301", "profile": [{ "jive_label": "Department", "value" : "My Department" }]},
        "name" : { "familyName" : "Van Dijck", "formatted" : "Wim Van Dijck", "givenName" : "Wim" }
      }
      

       

      The result is :

      {
        "error" : {
          "message" : "A user with the same username already exists",
          "status" : 409,
          "code" : "peopleDuplicateUsername"
        }
      }
      

       

      I'm not trying to create an entry, just update it. Could anyone kindly point me in the right direction?

       

      Kindest regards,

      Wim