I am trying to translate this curl command into a python POST request. I am new to calling api endpoints and this is my first encounter of -F form data. The curl request I am trying to replicate is below:
curl -X POST "https://genericurl.com/rest/endpoint" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "strictQuotes=" -F "escape=\"" -F "continueOnError=" -F "separator=;" -F "deleteFile=" -F "simulation=" -F "fileName=synchronization_file" -F "headerRow=" -F "ignoreLeadingWhitespace=" -F "sendNotification=" -F "fileId=" -F "template=" -F "saveResult=" -F "batchSize=1000" -F "file=@testSourceFile.csv;type=text/csv" -F "quote=\""
Thank you in advance!