About
put is a value of the HTTP method header field. It's a attribute of a http request that can be used by the underlining server function.
The exact meaning of the put value as given by the specification 1) is replace all current representations of the target resource with the request payload
After a successful PUT, a subsequent GET on that same target resource should result in the same data.
The function should be idempotent.
Note that there is no guarantee as:
- the server function may not implement it that way
- another external request may have already changed the state