REST Framework
Put vs Post
Put | Post |
---|---|
PUT method is idempotent. So if you send retry a request multiple times, that should be equivalent to single request modification. | POST is NOT idempotent. So if you retry the request N times, you will end up having N resources with N different URIs created on server. |
In practice, always use PUT for UPDATE operations. | Always use POST for CREATE operations. |