Hello,
I started to learn how your API works and everything was fine until I tried to create a new column in a board. I quite litterally copy / pasted the code I found in the doc, put my board ID and my API Key. changed nothing else just to see if it was working but I got this message :
“message”: “Parse error on "create_column" (IDENTIFIER) at [1, 1]”
here is my code :
let query = "create_column(board_id: "+boardID+", title:\"Work Status\", description:\"This is my work status column\", column_type:text){id}}"
fetch ("https://api.monday.com/v2", {
method: 'post',
headers: {
'Content-Type': 'application/json',
'Authorization' : apikey
},
body: JSON.stringify({
'query' : query
})
})
.then(res => res.json())
.then(res => console.log(JSON.stringify(res, null, 2)));
}
Do you know why this occurs ?
Thank you and have a nice day