Create new item with column values from json data

@matias me again! I’ve finally got my set up pulling my json lists and creating a new item on my Monday board, but I just ran into the issue related to this post: Create Multiple items at once - monday Apps & Developers / Feature Requests - API and Apps Framework - monday Community Forum.

My json list has info to create about 10 items with column values. I’m trying this “create item1” and “create item2” to try and get them to create multiple items using one mutation, but it’s just not working. Here is a snapshot of my python query that will successfully create 1 new item for me:

query2 = ‘mutation ($myItemName: String!, $columnVals: JSON!) { create_item (board_id:XXXXXXX, item_name:$myItemName, column_values:$columnVals) { id } }’
vars = {
‘myItemName’ : f’{address}‘,
‘columnVals’ : json.dumps({
‘text10’ : f’{datech}‘,
‘text’ : f’{builder}‘,
‘text1’ : f’{surface}‘,
‘text7’: f’{newdate}‘,
‘text9’ : f’{oridate}'})}

data = {‘query’ : query2, ‘variables’ : vars}
r = requests.post(url=apiUrl, json=data, headers=headers)
print(r.json())