- update api with type and weight of rule