Hello @dominick-miller,
A simple example to push .csv during aggregation :
import requests
url = f"https://{tenant}.api.identitynow.com/beta/sources/{id}/load-accounts" # api endpoint url
file_path = r"C:\Users\Thomas\Downloads\import.csv" # File to upload
proxies = {"http": "", "https": ""} # proxies if needed, remove if you don't need
access_token = "" # i suppose you know how to generate this
headers = {"Authorization": f"Bearer {access_token}"}
with open(file_path, "rb") as file:
files = {"file": ("file.csv", file, "text/csv")}
response = requests.post(url, files=files, proxies=proxies, verify=False, headers=headers) # If you don't use proxies, remove "proxies" and "verify" args
print(response.status_code)
print(response.text)
Hope it’s help,
Have a good day,
Thomas