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
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
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
Hey Scott, is this still the case or can we use the label names as documented? I tried this but the column status label is not updated, it is merely cleared, regardless of what I pass.
value: "{\"labels\":[\"Done\"]}"
This doesn’t update it to. “Done” , it just clears the status. The label text is an exact match to what I see as my options through the UI. I also tried updating this through the indexes "{\"ids\":[1]}", this also clears any current value.
Hi @JCorrell ,
thank you a lot for the reply, hope I will get another reply from you soon.
following is my query. I am able to set
following is my data to save … I’m able to save Person, People but can’t set the dropdown one. if I set it using index say “{“dropdown”:{“ids”:[1]},“status”:{“label”:“New”}}” then it is working. but I do not have the index value from where I am trying to create Item record.
Thanks for adding further context to your request!
Just to clarify, you can query for all indexes and labels of a Dropdown column like so:
That said, I’ve just tried to run a simple mutation, creating an item with multiple dropdown labels selected. Perhaps this example can help:
mutation {
create_item(board_id:boardid, group_id:“topics”, item_name:“test dropdown value with labels”, column_values:"{“dropdown” : {“labels”:[“XYZ”,“John Doe”]}}") {
id
}
}
Even fi you are using a single label as the value, you will still need to send it as an array, like so: