Bug in Status column label changes by mutation query if pass value as num

Hey Team,

I would like to highlight a monday.com API query/mutation bugs/errors on STATUS or dropdown column changes via mutation query when i add value as “15” num it take as index but this “15” value already present as label in monday.com board columns.

My Boards Status column labels includes only in number format like as following SC. (In-Store Period) status column and having column id: color__1

Now, I am trying to make mutation for change_simple_column_value and passing value as already present label from board column
and for safer side as well pass create_labels_if_missing: true if label miss it should add automatically.

`mutation {
      change_simple_column_value(item_id: ${itemID}, board_id: ${boardID}, 
        column_id: "color__1", value: "20", create_labels_if_missing: true) {
          id
    }  
}
`

Error or bugs: Below is the response I received even label is present in status column

{ error_code: ‘ColumnValueException’,
status_code: 400,
error_message: ‘change_column_value invalid value’,
error_data:
{ column_value: ‘{“index”=>{:label_index=>16}}’,
column_type: ‘StatusColumn’ } }

I have also cross check for subitem status/dropdown column I received same if on status/dropdown column i keep number as label even if it present I received an error.

Please check this bugs
(Also check on community same bugs i found please check FYR-blogs)

Thanks
Aniket

Hello there @Aniket_Katre3,

As explained in our documentation, using the change_simple_column_value mutation, you can pass either the index or the label value of the status you want to update in the value argument. But, if the label is a number, you need to send the index instead. Otherwise, the label will be treated as an index value, and the mutation will fail.

I hope that helps!

Cheers,
Matias