Are Fields Overwritten when Updating a User with an API Call?
When using the update user API endpoint, for fields that are not required, will the existing values in the non-required fields be overwritten with null values if there are no values supplied in the API call?
https://service.uoregon.edu/TDWebApi/api/people/{uid}
Updates a person entry for the user with the specified identifier with a set of new values.
This is difficult to test, in the Sandbox or Production, without the risk of destroying a record.
Thanks, Tevis
Answer (1)
Hello Tevis,
Yes, since we don't have a PATCH call yet we recommend you GET the user's full user object first, then make your corrections to it and send the full object back rather than try to a full object with some null values in some fields.
You *could* test though on a "dummy" user account if you needed to so you knew you could test in any way desired without affecting a real person's record.
Sincerely,
Mark Sayers
Sr Support Consultant, CS