Closed wish2023 closed 1 year ago
Hi @wish2023 Please wrap your data in json.dumps:
r = ls.make_request('POST', f'/api/projects/{project_id}/import', data= json.dumps(data2))
and add extra headers to your LS client:
headers = {'Content-type': 'application/json'}
ls = client.Client(url='http://127.0.0.1:8000/', extra_headers=headers)
Hi, I'm working on importing multiple tasks to a project via URL:
I can successfully import using
data1
but get the following error usingdata2
: