I have a curl code generated through Insomnia which is working fine. I just can't figure out to replicate It with python request.
curl --request POST \
--url MY_SERVER_URL \
--header 'Accept: application/json' \
--header 'Content-type: multipart/form-data; boundary=---011000010111000001101001' \
--header 'Authorization: AUTH_TOKEN' \
--form 'operations={
"query": "mutation($file: Upload!, $path: String!, $private: Boolean) { uploadFile(file: $file, path: $path, private: $private) }",
"variables": {
"file": null,
"path": "test",
"private": false
}
}' \
--form 'map={ "0": ["variables.file"] }' \
--form '0=@E:\Development\Technology\Python\small_utilities\barwis\random-files\files\csvs\above serious.csv'
Thanks