Updating a dropdown column using labels?

Hi,

I’m trying to use the API v2 to change the values in a dropdown column. The first instruction works. The other two are not. But should work according to the instructions at https://monday.com/developers/v2#column-values-section-dropdown

The following three actions should all always lead to the same result. That’s not the case. Only the first one results as expected.

My primary interest is an update using the labels instead of the ids.

Can someone help please?

Thnx a lot
Michael

Instruction: mutation { change_column_value(board_id: 123, item_id: 456, column_id: “status2”, value: “{“ids”:[1]}”) { id } }
Expected: value: "{“ids”: [1]}
Result: value: "{“ids”: [1]}

Instruction: mutation { change_column_value(board_id: 123, item_id: 456, column_id: “status2”, value: “{“id”:1}”) { id } }
Expected: value: "{“ids”: [1]}
Result: value: "{“ids”: null}

Instruction: mutation { change_column_value(board_id: 123, item_id: 456, column_id: “status2”, value: “{“label”:“xyz”}”) { id } }
Expected: value: "{“ids”: [1]}
Result: value: "{“ids”: null}

Hi Michael,

Thanks for taking the time to reach out to us in regards to this! To be transparent, the 2nd and 3rd examples you provided include bugs with the API that we’re aware of and are slated to be resolved in the future :muscle:

The Dropdown Column itself, until quite recently, only supported having a single selected value at a time. We’ve since updated it so you can select multiple values. Our API documentation hasn’t quite fully caught up with that change, but we’re workin’ on it!

In the meantime, you’ll need to select multiple values utilizing the index instead of labels. As well as utilize the format “{“ids”:[1]}”) instead of “{“id”:1}”) in your API calls.

I’ve shared your feedback with our development team here so we can get this updated soon :raised_hands:

Best,
Scott

I’d also definitely look forward to be able to use the API to select multiple values for a dropdown column :+1:

1 Like

Howdy! :wave:

To further clarify, you can use the API to select multiple values within a dropdown column. You’ll just need to use the index instead of the labels for now.

I made a slight edit to my original post to make that more clear :wink:

Best,
Scott