PUT is idempotent, while PATCH is not.
What does idempotent mean?
It means that any number of repeated, identical requests will leave the resource in the same state.or
Idempotent operations produce the same result even when the operation is repeated many times. The result of the 2nd, 3rd, and 1,000th repeat of the operation will return exactly the same result as the 1st time.
common idempotent methods:
GET, HEAD, PUT, DELETE, OPTIONS, TRACE
common non-idempotent methods: POST,PATCH, CONNECT