Skip to main content

New Label in Existing Status Column in Monday Board

  • March 14, 2024
  • 1 reply
  • 123 views

haider1122

I want to create New Label in Existing Status Column in Monday Board through Mutation.
Is there any mutation that can do that ??

1 reply

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • March 18, 2024

Hello there @haider1122,

You could use a mutation like this:

mutation {
  change_simple_column_value(
    item_id: 1122334455
    board_id: 1234567890
    column_id: "status"
    value: "New label"
    create_labels_if_missing: true
  ) {
    id
  }
}

And then change the status back to what it was. You could also create an item with that new label in the status column and then delete the item:

mutation {
  create_item(
    board_id: 1234567890
    item_name: "Test"
    column_values: "{\\"status\\":\\"This Label\\"}"
    create_labels_if_missing: true
  ) {
    id
  }
}

I hope that helps!

Cheers,
Matias