Hey guys
I'm trying to create a dataset with API on Python script but it's throwing a 400 error. Below is the code.
json = {
"name": "Dataset Name",
"description": "Description",
"rows": 0,
"schema": {
"columns": [
{"type": "STRING", "name": "Col1"},
{"type": "STRING", "name": "Col2"}
]
}
}
response = requests.post('https://api.domo.com/v1/datasets',
headers={'Authorization': 'bearer ' + accessToken, 'Content-Type': 'application/json', 'Accept': 'application/json'},
json=json)
Could you please advise on how I can get it work?
Thank you!