@Nived_Nambiar
Please find the Python Script
=============================
import requests
url = "http Url"
payload={'baseDocumentId': '0DE4D6CB5A7D',
'documentTypeId': '1400',
'isReferenceDocument': 'true',
'baseProfileIds': 'E9F5F493D3C6',
'sendNotifications': 'false',
'legalMatterId': '052999978554'}
files=[
('file',('Capture.PNG',open('/C:/Users/Downloads/Capture.PNG','rb'),'application/octet-stream'))
]
headers = {
'Authorization': 'Bearer <token>'
}
response =,
requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)