How to filter response if the values occurs in a set of values?

My question:
I have a list of sampleId’s named sampleid_list , now I want to do a requests and I only want to get the SampleId if that SampleId occurs in sampleid_list

Details (like screenshots):