Uploading nugget package from orchestrator API calls

Hi guys,

As a part of my ongoing project. I am trying to upload the nugget packet through Orchestrator API call from my python program. But I am stuck with the below problem. So could anyone please provide me any suggestions or help regarding to this.

My code:
postHeaders={‘authorization’:“Bearer “+authCode,‘content-type’:‘multipart/form-data’,‘Accept’: ‘application/json’ }
postUrl=endpoint+”/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage”
fileRead={‘file’: (filePath),‘Content-Disposition’: ‘form-data’; ‘name’=‘file’; ‘Content-Type’: ‘application/octet-stream’}
try:
fr=requests.post(postUrl,headers=postHeaders,files=fileRead)
print(fr.raise_for_status)

Error :
400
{“message”:“The package file is required.”,“errorCode”:1000,“resourceIds”:null}

Thank you for your help in advance.

Best,
Sid