put-item: Creates a new item, or replaces an old item with a new item
update-item: Edits an existing item's attributes, or adds a new item to the table if it does not already exist.
When I used update-item with a new partition key which did not exist in the table, it created the item. The same thing happened with put-item.
So what is the different between put-item and update-item?
Thanks.