[#1066] Implement patch method in WS

See #1066