[HELP]How can i change a dropdown column value using API

Hi everyone, i’m can’t find the right sintax to change a dropdown column value using the API.
I’m being trying the following query:

mutation{
change_multiple_column_values(board_id: XXXX, item_id: XXX, column_values:"{“dropdown”: {“labels”: “ids: [7]”}}")
{id}
}

Hello @daviperes,

To change the Dropdown column, you can either use the dropdown ids or label. You cannot use both. That may be the reason why your mutation isn’t working. Also, your formatting is incorrect. Try this:

mutation {
  change_multiple_column_values( board_id:XXXX, item_id:XXX, column_values: "{\"dropdown\":{\"ids\":[7]}}") {
    id
  }
}

That worked, thanks!

If not asking too much, you can send a exemple using labels? I’m confusing with the sintax (also newbie in JSON files)

Happy to hear that.
Labels works similarly to ids. Will just have to substitute labels for ids and the array values should be strings.
Like this:

mutation {
  change_multiple_column_values( board_id:XXXX, item_id:XXX, column_values: "{\"dropdown\":{\"labels\":[\"Hello world\"]}}") {
    id
  }
}