What is best practise for renaming a resource in a RESTful way? Let's say my users can maintain named lists of things with the uri
http://example.org/users/{userName}/lists/{listName}
I want to give my users an API to rename a certain list. What is the preferred way?
I came up with the following so far:
- POST to to the list resource with the post-data "newname=..."
- PUT the list to the new URI and then DELETE the old URI
What is the right way to do this?