szymon_dybczak
Esteemed Contributor III

Hi @fkseki ,

Oh man, after 1,5 hour of trail and error I've found a way to make it work 😄 You need to use dot notation and it will work. They shoud've specified this in docs though...

params = {"filter_by.policy_name": "szymon - genric"}

headers = {
 'Authorization': f'Bearer {TOKEN}',
 'Accept': 'application/json',
 'Content-Type': 'application/json'
}

response = requests.get(url=url, headers=headers, params=params)

data = response.json()
print("SUCCESS!")
print(json.dumps(data, indent=2))

 

View solution in original post