Hi,
I
I have ran the following Python script and received a message:
{“data”:{“add_file_to_column”:{“id”:“639126111”}},“account_id”:7384772}
But in the item Files column the file is not displayed.
Here is the script:
import requests
url = “https://api.monday.com/v2/file”
payload={‘query’: ‘mutation ($file: File!) {add_file_to_column (file: $file, item_id: 1455154608, column_id: “files”) {id}}’}
files=[
(‘variables[file]’,(‘Board_Subitems.txt’,open(‘C:\MyData\Monday\Files\Board_Subitems.txt’,‘rb’),‘text’))
]
headers = {
‘Authorization’: ‘XXX’,
}
response = requests.request(“POST”, url, headers=headers, data=payload, files=files)
print(response.text)
I would appreciate some help.
Thanks!