Hi,
Is it possible to update the subitem’s column values based on the subitem Id (“id ‘ID!’ The subitem’s unique identifier.”)?
The id of the subitem I want to edit is: 1285809696
The id of the board that contains this subitem is: 1274270217
I’m using the following query in Python:
query3 = """mutation ($columnVals: JSON!) {change_multiple_column_values(item_id: 1285809696, board_id:1274270217, column_values:$columnVals) {id}}"""
vars = {'columnVals': json.dumps(
{'epic': 'ZK-2222'})}
data = {'query': query3, 'variables': vars}
monday_headers = {"Authorization": *API_KEY*, 'API-Version' : '2023-10'}
r = requests.post(url=monday_apiUrl, json=data, headers=monday_headers)
r = r.json()
And I’m getting this response:
{‘error_code’: ‘InvalidColumnIdException’, ‘status_code’: 200, ‘error_message’: “This column ID doesn’t exist for the board”, ‘error_data’: {‘column_id’: ‘epic’, ‘board_id’: None, ‘error_reason’: ‘store.monday.automation.error.missing_column’}}
I have confirmed that the id of the subitem’s column I want to edit is: ‘epic’
Thanks.