Hello!
I have written the following mutation on the “try-it-yourself” page, and it works flawlessly.
mutation {
change_multiple_column_values(board_id: XXXXXXXXX, item_id: XXXXXXXXX, column_values: "{\\"text\\":\\"test1\\", \\"numbers7\\":\\"0\\", \\"date\\" : { \\"date\\" : \\"1955-10-28\\" }}") {
id
}
}
However, the next step in the process for me is to integrate this into Java code. I have managed to post the data with authentication and so on which works fine. However I struggle greatly with formatting the body correctly so that the above mentioned query gets executed. Could anyone kindly help me as I am at a loss how to actually format it correctly? At the moment the error code I get by the post is code 400.
I have tried many different variations to no avail with my latest try being the following:
String body = “{ "query" : mutation { change_multiple_column_values(board_id: XXXXXXXX, item_id: XXXXXXXX, column_values: {"text":"test1", "numbers7":"0", "date" : { "date" : "1955-10-08" }}") { id }}}”;
Do note that the change in date is intentional so that I could see any change on Monday in case that my query worked.
Thank you in advance for your help.