Skip to main content

Hi all,


I’m running into the following error when trying to run a mutation. My code (below) is based on Monday’s platform API guide: GraphQL overview.


{

“uri”: “https://api.monday.com/v2”,

“method”: “POST”,

“queries”: {

“query”: “mutation { change_column_value ( item_id: 8626366937, board_id: 8626366830, column_id: "Status", value: "Overdue") { id } }”

},

“headers”: {

“Authorization”: “sanitized”,

“content-type”: “application/json”

}

}


Error message

{“errors”:>{“message”:“Invalid GraphQL request”,“extensions”:{“details”:“failed to deserialize the request body into JSON: expected , or } at line 1 column 101”,“code”:“INVALID_GRAPHQL_REQUEST”}}],“account_id”:8064265}


It seems there is a syntax error with "status", but I haven’t been able to figure out what it is. According to Monday’s own API guide, after column_id, there should be a String with value equal to the column’s title you are trying to edit. Has anyone run into a similar error?


For reference, here is the example code from the API article:


change_column_value (board_id: 157244624,item_id: 9539475, column_id: “status”, value: $value) {

id

}

hey @Ianwp


Bill here from monday.com 👋


Try using the “change_simple_column_value” with the string or the “change_multiple_column_values” with JSON of the status index.


You can find examples here


I hope this helps.


Cheers,

Bill


Reply