Hi,
I am trying update multiple column values of an item using mutation,But I am getting error code 500 everytime.
Can anyone please help me out ??
Sending the data into column values in the following format.
{“person3”:“Person one”,“numbers”:22,“location”:“New Delhi”,“date”:“IDBI Bank”,“numbers8”:500}const updateItem = async (token, boardId, itemId, columnvalues) => {
debugger
try {
const mondayClient = initMondayClient({ token });
const query = `mutation change_multiple_column_values($boardId: Int!, $itemId: Int!, $columnvalues: JSON!) {
change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnvalues) {
id
}
}
`;
const variables = { boardId, itemId, columnvalues };
const response = await mondayClient.api(query, { variables });
console.log(response)
return response;
} catch (err) {
debugger
console.error(err);
}
};
Attaching the snaps of my code.