API mutation with quote show parsing error

Hi,

Here my query :
mutation {
change_multiple_column_values(item_id: 5272151240, board_id: 5264554251, column_values: “{"texte08":"'"}”,create_labels_if_missing: true) {
id } }

And i have an error :
Parse error on “"” (error) at

I use json_encode in php for encode string and seem monday api dont need to encode quote, how can i do ?

Thank you

Hello there @Marcel,

Not sure about PHP but it looks like you might need to escape outer quotes here:

mutation {
  change_multiple_column_values(
    item_id: 1234567890
    board_id: 1122334455
    column_values: "{\"text\":\"\"}"
    create_labels_if_missing: true
  ) {
    id
  }
}

Also, no need for the create_labels_if_missing in this case.

I hope that helps!

Cheers,
Matias

1 Like