support PATCH. to_dict api compatible with standard version