Create Multiple items at once

Hello there @geeemaaan,

Here is an example:

app.post("/myendpoint", function(req, res) {

	 res.status(200).send(req.body)	

	 let itemNamesArray = ["Item10", "Item11", "Item12", "Item13"]

for (let i = 0; i < itemNamesArray.length; i++) {
		let query5 = `mutation { create_item (board_id:1234567890, item_name:${itemNamesArray[i]}, column_values:\"{\\\"text\\\":\\\"Some text\\\"}\") { id } }`;
	 
		fetch ("https://api.monday.com/v2", {
		  method: 'post',
		  headers: {
			'Content-Type': 'application/json',
			'Authorization' : 'MYAPIKEYHERE'
		  },
		  body: JSON.stringify({
			'query' : query5
		  })
		}).then(res => res.json())
		.then(res => console.log(JSON.stringify(res, null, 2)));
	}
})

Here I am passing the name of the items as a variable, but in the same way, you could pass somehting like the column values.

I hope that helps!

Cheers,
Matias