Copying Subitem Dropdown Labels via API

I’m fairly new to python coding and the Monday API.

I’m trying to sync one board to another via some python scripts, but am having trouble replicating updates (or additions) to Subitem column dropdown labels.

Is there no way to update/sync Subitem dropdown labels from one board to another via the API?

Thanks

you can

but first you need to find the subitem board id like this

query {
boards(ids: 9549045650) {
items_page {
items {
id
name
subitems {
id # Subitem item ID
name
board {
id # Board ID
}
}
}
}
}
}

now use that subitem Board id and ItemId to update the column values

mutation {
change_multiple_column_values(
item_id: 10016052082
board_id: 9575311991
column_values: “{"dropdown_mkwxp22j": {"labels": ["A", "B", "C"]}}”
create_labels_if_missing: true
) {
id
}
}

1 Like

Hi Anish - thanks so much, this worked! I am not sure this is in the API documentation? Anyway it was not found initially so thanks.

Now I need to find a way to copy new or renamed View tabs, and also Conditional Coloring for a board. My next challenge, if you have any ideas on that as well.

Thanks again!

I am not sure about them but try this

and use there monday ai it’s really good it’s knows almost all about monday’s APIs