Monday API - updating multiple columns

Attempting to call this in the API :slight_smile: {“query”:“mutation ($boardId: Int!, $columnVals: JSON!, $itemId: Int!) { change_multiple_column_values (board_id: xxxxxx, item_id: xxxxxx, column_values: {"nick_name":"test123"}) { id } }”}

I get the error
{“errors”:[{“message”:“Parse error on "nick_name" (STRING) at [1, 154]”,“locations”:[{“line”:1,“column”:154}]}],“account_id”:xxxxxxx}

What am I doing wrong ?

Hello @danm and welcome to the community!

I hope you like it here :muscle:

You should encapsulate the column values inside quotes and escape the outer quotes:

{
  change_multiple_column_values(board_id: xxxxxx, item_id: xxxxxx, column_values: "{\"nick_name\":\"test123\"}") {
    id
  }
}

Hope that helps :slightly_smiling_face:

Cheers,
Matias