How can I filter a child field base on parent field in API?

use case:

I have a parent field customer section and when I click add new row in the child table there is a customer_sub_profile field which should be filter base on the customer section selected in the parent field.

http://instants/api/resource/Customer/?filters=[[“Customer”, “parent”, “=”, “CUST-00025”,“parentfield”, “=”, “customer_sub_profile”, “parenttype”, “=”, “Customer”, “idx”,"=",2,“name”,"=",“0e393d1060”]]&fields=[“name”,“idx”,“creation”]

any idea how to do this?