According to MDN:
POST: Create a new resource (e.g. add a new article to a wiki, add a new contact to a database).
PUT: Update an existing resource (or create a new one if it doesn't exist).
To me, it seems like PUT also encapsulates the functions of POST. So why not always use PUT? Or, perhaps there a scenario where POST is preferred?