The rating column holds rating information for your item(s). This is useful for ranking or assigning a grade to your item(s).

Check out our help center to learn more about the column: The Rating Column.

You can update a rating column with a JSON string. Simple string updates are not supported.

JSON

To update a rating column, send a number between 1 and your rating scale (this can be updated in the column settings).

For example: "{"rating":5}".

Code example

mutation {
  change_multiple_column_values(item_id:11111, board_id:22222, column_values: "{\"rating12\" : {\"rating\" : 5}}") {
    id
  }
}
fetch ("https://api.monday.com/v2", {
  method: 'post',
  headers: {
    'Content-Type': 'application/json',
    'Authorization' : 'YOUR_API_KEY'
  },
  body: JSON.stringify({
    query : "mutation ($myBoardId:Int!, $myItemId:Int!, $myColumnValues:JSON!) { change_multiple_column_values(item_id:$myItemId, board_id:$myBoardId, column_values: $myColumnValues) { id }}",
    variables : JSON.stringify({
      myBoardId: YOUR_BOARD_ID,
      myItemId: YOUR_ITEM_ID,
      myColumnValues: "{\"rating12\" : {\"rating\" : \"5\"}}"
      })
    })
  })
})
curl "https://api.monday.com/v2" \
-X POST \
-H "Content-Type:application/json" \
-H "Authorization:MY_API_KEY" \
-d '{"query":"mutation{change_multiple_column_values(item_id:162169283, board_id:162169280, column_values:\"{\\\"rating12\\\" : {\\\"rating\\\" : \\\"5\\\"}}\"){name}}"}'

Did this page help you?