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

Asked by Tevis Boulware on Mon 6/12/23 7:52 PM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Mark Sayers Tue 6/13/23 9:12 AM

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

1 of 1 users found this helpful.
Thanks, and this is what I have been doing, and I just wanted to confirm. - Tevis Boulware Tue 6/13/23 10:08 AM
You're very welcome! - Mark Sayers Tue 6/13/23 10:09 AM