Trying to update Monday,con columns using PHP file and everything thin gh I;ve tried, and I’ve enlisted Gemini AI, fails. Any ideas on how rto make this update work?
I send: $query = 'mutation $query = ‘mutation updateItemData{change_multiple_column_values(board_id:’ . $boardId . ‘,item_id:’ . $itemId . ‘,column_values:’ . $formattedColumnValuesForGraphQL . ‘){id name column_values{id value type}}}’;
Which produces this mutation:
mutation updateItemData {
change_multiple_column_values (
board_id: 1234567890,
item_id: 1987654320,
column_values: {
status: “{"label":"TEST ONLY"}”,
notes: “testing”
}
) {
id
name
column_values {
id
value
type
}
}
}
and is returning this error:
[26-May-2025 00:10:10 UTC] API received column_values from frontend: {“status”:{“label”:“TEST ONLY”},“notes”:“testing”}
[26-May-2025 00:10:10 UTC] Monday.com GraphQL Query Sent: {“query”:“mutation updateItemData{change_multiple_column_values(board_id:8696866548,item_id:9224943470,column_values:{"status":"{\"label\":\"TEST ONLY\"}","notes":"testing"}){id name column_values{id value type}}}”}
[26-May-2025 00:10:10 UTC] Monday.com API Error (HTTP 400): {“errors”:[{“message”:“parsing error: syntax error: expected R_CURLY, got "status"”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected R_PAREN, got "status"”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected R_CURLY, got "status"”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:117}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:118}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:146}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:153}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:154}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:163}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:164}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:203}],“extensions”:{“code”:“PARSING_ERROR”}}]}
[26-May-2025 00:10:10 UTC] Failed to update Monday.com item. Result: {“error”:“Monday.com API Error”,“http_code”:400,“details”:{“errors”:[{“message”:“parsing error: syntax error: expected R_CURLY, got "status"”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected R_PAREN, got "status"”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected R_CURLY, got "status"”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:109}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:117}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:118}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:146}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:153}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected definition”,“locations”:[{“line”:1,“column”:154}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:163}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:164}],“extensions”:{“code”:“PARSING_ERROR”}},{“message”:“parsing error: syntax error: expected a StringValue, Name or OperationDefinition”,“locations”:[{“line”:1,“column”:203}],“extensions”:{“code”:“PARSING_ERROR”}}]}}
[26-May-2025 00:10:10 UTC] Failed to update Monday.com item for client ID: 29. Item ID: 9224943470. Monday API response: false