https://graph.microsoft.com/v1.0/sites/{siteId}/drive/root:/directoryName1/directoryName2:/children?search(q='Data')
To directly search within that specific path, you should remove the /children
segment and use the /search
endpoint like this:
It will return all files in the specified directory, and then apply the search filter