[REST API] Fetch parent data by filtering child

I have custom parent docType Individual that has Category (also custom) as its child (category_name goes here) and want to get all Individual data that has certain category_name using rest api. Is this possible? and if it is, how?
This is one of many combination I’ve tried. Most of them resulted in similar response.

Hi @hikmahaz,

Please set API like:
{erpnext.url}/api/resource/Individual?filters=[[“Category”,“category_name”,“=”,“Influencer”]]

More Details for:
https://frappeframework.com/docs/v13/user/en/guides/integration/rest_api/listing_documents

Thank You!

1 Like

And also check-in erpnext like:

Thanks.

1 Like

Hi @NCP ,
i have to access child table it is in Project doctype itself.
i tried these /api/resource/<child doctype>
but it does not working.

is any other way to access child doctype ?

Hi,

There is no acces to Child DocType by API
Workaround can be something like create you own API end point

2 Likes