Need help with a restapi call to get Affiliation seek list settings of a client

Hi All, Please help me with a restapi call to be used in curl to get a affiliation seek list and affiliation advertisement settings of a client. I have it done through session relevance but the same do not work with Curl rest api. Thank you

What is the session relevance you use and what effects do you see when you try it using RestAPI?

(item 0 of it as string & “$x$” & item 1 of it as string & “$x$” & item 2 of it as string & “$x$” & item 3 of it as string & “$x$” & item 4 of it as string & " – " & item 5 of it as string) of ((if (exists result (item 0 of it , item 1 of it) and exists values of result (item 0 of it , item 1 of it)) then (concatenation “%0A” of values of result (item 0 of it , item 1 of it)) else ("")) , (if (exists result (item 0 of it , item 2 of it) and exists values of result (item 0 of it , item 2 of it)) then (concatenation “%0A” of values of result (item 0 of it , item 2 of it)) else ("")) , (if (exists result (item 0 of it , item 3 of it) and exists values of result (item 0 of it , item 3 of it)) then (concatenation “%0A” of values of result (item 0 of it , item 3 of it)) else ("")) , (if (exists result (item 0 of it , item 4 of it) and exists values of result (item 0 of it , item 4 of it)) then (concatenation “%0A” of values of result (item 0 of it , item 4 of it)) else ("")) , (if (exists result (item 0 of it , item 5 of it) and exists values of result (item 0 of it , item 5 of it)) then (concatenation “%0A” of values of result (item 0 of it , item 5 of it)) else ("")) , (if (exists result (item 0 of it , item 6 of it) and exists values of result (item 0 of it , item 6 of it)) then (concatenation “%0A” of values of result (item 0 of it , item 6 of it)) else (""))) of (bes computers , bes property “Computer Name” , bes property “Agent Version” , bes property “Agent Type” , bes property “City” , bes property “_BESRelay_Register_Affiliation_AdvertisementList” , bes property

Rest:-1:
\curl.exe -X GET --insecure --user “admin:****” -o “D:\temp” https://DSA.Server:52311/api/query?“relevance=(IDs%20of%20it%20,%20Names%20of%20it%20,%20Operating%20Systems%20of%20it%20,%20Last%20Report%20Times%20of%20it,%20_BESRelay_Register_Affiliation_AdvertisementList,%20_BESClient_Register_Affiliation_SeekList)%20of%20bes%20computers%20whose%20(agent%20type%20of%20it%20=%20"Native”)"

The operator “_besrelay_register_affiliation_advertisementlist” is not defined.

Firstly, please try to use the forum facilities to properly present code.

Secondly, your (truncated) session relevance doesn’t match what you are trying in your RestAPI.

Your RestAPI query appears to be

	(
		IDs of it , Names of it , Operating Systems of it , Last Report Times of it , _BESRelay_Register_Affiliation_AdvertisementList , _BESClient_Register_Affiliation_SeekList 
	)
	of bes computers 
	whose
	(
		agent type of it = "Native" 
	)

but neither of _BESRelay_Register_Affiliation_AdvertisementList , _BESClient_Register_Affiliation_SeekList are properties of the type bes computer

I understood the use of preformatted text for code. Also would there be a way to add them as a BES property to get the values through same call, may be?