Hi,
I'm trying to upload a file using following python code but I'm getting an error message, can you pls help me what I'm missing here
**************************************************
import requests
url = "https://xxxxxxxx.opentext.cloud/cs/cs/api/v2/nodes"
payload = 'type=144&parent_id=253389&name=testfile&file=C:/Test/Test.pdf'
headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json', 'OTCSTicket': '••••••'}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
*************************************
Error:
Response code : 500
"error": "An illegal attempt was made to upload a document"