Skip to main content

Unassign person from multiple-person column type via api

  • July 20, 2022
  • 2 replies
  • 901 views

Forum|alt.badge.img
  • Participating Frequently

Hello,
I am trying to implement an option to unassign person from multiple-person column.
I tried to create this mutation:

      mutation {
        change_column_value (board_id: ${boardId}, item_id: ${itemId}, column_id: "person", value: ${user exist there ? null : {\\"personsAndTeams\\":[{\\"id\\":null,\\"kind\\":\\"person\\"}]}}) {
            id
        }
    }

While assigning working great, changing the value to null when there is already a user there, not working.

Any ideas? Thank you!

2 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • July 21, 2022

Hello @Roy!

You can clear the people column using a mutation like this one:

mutation {
change_column_value(board_id: 1234567890, item_id: 1122334455, column_id: “people”, value: “{"personsAndTeams":{}}”) {
id
}
}

Hope it helps 🙂

Cheers,
Matias


Forum|alt.badge.img
  • Author
  • Participating Frequently
  • July 21, 2022

Thank you very much!