import requests
url = "https://data.lucid.app/adapter/csv?dataSource=https://data.lucid.app/dataSources/123456"
payload = {}
files=[
('file',('FILE.csv',open('FILE.csv','rb'),'text/csv'))
]
headers = {
'accept': 'application/json;v=1',
'Authorization': 'Bearer oauth2-xxxx'
}
response = requests.request("PUT", url, headers=headers, data=payload, files=files)
print(response.text)
I am using code like above to attempt to update an existing CSV datasource via API
https://lucid.readme.io/reference/updatedatasourcefromcsv
The request gets a successful 200 OK Response but the lastModified value never changes and the data does not update in the LucidChart that has that data linked in.
I tried adding the optional collection parameter but saw no difference in response or results.