LendingPad interview question

They asked me to modify the Add endpoint to prevent errors when adding items with duplicate identifiers.