patching api