Hi Monday support.
I am using the Monday API to pull data via Python. I am using the following code:
def monday_fetch_and_process_data(api_key, board_id):
# API Endpoint
url = “https://api.monday.com/v2”
# Query to get items from a specific board
query = '''
{
boards(ids: %s) {
items {
name
column_values {
title
text
}
}
}
}
''' % board_id
# Headers
headers = {
'Authorization': api_key,
'Content-Type': 'application/json'
}
# Make the API Request
response = requests.post(url, json={'query': query}, headers=headers)
data = response.json()
Everything has been running smoothly until this morning, where I get this error when running the code:
API Response: {‘errors’: [{‘message’: “Field ‘items’ doesn’t exist on type ‘Board’”, ‘locations’: [{‘line’: 4, ‘column’: 9}], ‘path’: [‘query’, ‘boards’, ‘items’], ‘extensions’: {‘code’: ‘undefinedField’, ‘typeName’: ‘Board’, ‘fieldName’: ‘items’}}], ‘account_id’: 4064623}
I would greatly appreciate if someone can help me.