To update a record by using a customized unique key from api

It would be fine to be able to assign a custom unique key.
And to be able to update an existing record with the api and this customized key.