expose the -1 invalid UID to API users; use the UID as indicator of new/existing record