Rest api upload file

I have this python code to upload the file… this first time I am doing the upload via api.

sudoers_fil=‘/home/user/userterm.lis_9-Jul-2020’
fil = {‘file’: open(sudoers_fil, ‘rb’)}
r = requests.post(‘https://xyz:52311/api/upload’, auth=(‘user’, ‘pwd’),files=fil,verify=False)
print(r.text)
tree2 = ET.fromstring(r.text)
for fixlet in tree2.findall(‘.//FileUpload’):
URL=fixlet.find(“URL”).text
print (URL)

How do i tell the api to dump the file in “xyz” folder without the sha as subfolder.

image