We were issuing very standard read queries and they were working, but then mysteriously stopped working with the error:
“undefinedField” message:
“Field ‘items’ doesn’t exist on type ‘Board’”
This exact file executed earlier, but now fails.
This is what we were running:
import requests
apiKey = redacted
apiUrl = "https://api.monday.com/v2"
headers = {"Authorization" : apiKey,
"api-version": "2023-10",
"user-agent": "Make/production"
}
query = """{
boards (ids: 5971617342) {
items {
id
name
column_values {
id
title
value
}
}
}}"""
data = {'query' : query}
r = requests.post(url=apiUrl, json=data, headers=headers) # make request
board = r.json()
for item in board['data']['boards'][0]['items']:
id = int(item['id'])
name = item['name']
Has anyone experienced this issue, and would you mind sharing how you resolved it?