doing lots of other queries, but i’m having trouble formatting a change_multiple_column_values query.
posting this json:
{“query”:“mutation { change_multiple_column_values ( board_id: 655318672, item_id: 662694544, column_values: \”{\“date4\”: {\“date\”: \“2020-08-04\”},\“next_arr__days_7\”: \“9\”,\“property_id\”: \“1289\”,\“person\”: {\“id\”: null},\“numbers2\”: \“1.50\”,\“departing_rez\”: \“5146\”,\“status\”: {\“index\”: 1}}\“) { id } }”}
returns:
[errors] => Array
(
[0] => stdClass Object
(
[message] => Parse error on “: {” (STRING) at [9, 28]
[locations] => Array
(
[0] => stdClass Object
(
[line] => 9
[column] => 28
)
)
)
)
putting the mutation text above on try it yourself doesn’t work UNLESS i remove the \ from the \" at the beginning and end of the column_values. so this does not work:
mutation { change_multiple_column_values ( board_id: 655318672, item_id: 662694544, column_values: \“{\“date4\”: {\“date\”: \“2020-08-04\”},\“next_arr__days_7\”: \“9\”,\“property_id\”: \“1289\”,\“person\”: {\“id\”: null},\“numbers2\”: \“1.50\”,\“departing_rez\”: \“5146\”,\“status\”: {\“index\”: 1}}\”) { id } }
returns Parse error on "\\" (error) at [1, 121]
but this does:
Preformatted text
mutation { change_multiple_column_values ( board_id: 655318672, item_id: 662694544, column_values: “{\“date4\”: {\“date\”: \“2020-08-04\”},\“next_arr__days_7\”: \“9\”,\“property_id\”: \“1289\”,\“person\”: {\“id\”: null},\“numbers2\”: \“1.50\”,\“departing_rez\”: \“5146\”,\“status\”: {\“index\”: 1}}”) { id } }
but changing the \"'s to " on the post doesn’t work either. doesn’t return anything (gets an http code 400.) so i can make it work on try it yourself, but not in my code (php cURL)
i must be missing something simple…