❗️

NOTE

This section refers to the team column which has been deprecated. If you are trying to assign a team to an item, utilize the people column instead.

Check out the People column for more information.

The team column contains teams assigned and/or selected to an item on a board. This column has been deprecated.

You can update a team column with a JSON string. Simple string updates are not supported.

JSON

To update a team column send the ID of the team. The ID of a specific team can be found by using the Teams queries, checking which teams a particular user is a part of (with the User object), or opening the team’s page in monday.com and copying the number at the end of the URL.

For example: "{"team_id":51166}".

Code example

mutation {
  change_multiple_column_values(item_id:11111, board_id:22222, column_values: "{\"team2\" : {\"team_id\" : \"51166\"}}") {
    id
  }
}
fetch ("https://api.monday.com/v2", {
  method: 'post',
  headers: {
    'Content-Type': 'application/json',
    'Authorization' : 'YOUR_API_KEY'
  },
  body: JSON.stringify({
    query : "mutation ($myBoardId:Int!, $myItemId:Int!, $myColumnValues:JSON!) { change_multiple_column_values(item_id:$myItemId, board_id:$myBoardId, column_values: $myColumnValues) { id }}",
    variables : JSON.stringify({
      myBoardId: YOUR_BOARD_ID,
      myItemId: YOUR_ITEM_ID,
      myColumnValues: "{\"team2\" : {\"team_id\" : \"51166\"}}"
    })
  })
})
curl "https://api.monday.com/v2" \
-X POST \
-H "Content-Type:application/json" \
-H "Authorization:MY_API_KEY" \
-d '{"query":"mutation{change_multiple_column_values(item_id:162169283, board_id:162169280, column_values:\"{\\\"team2\\\" : {\\\"team_id\\\" : \\\"51166\\\"}}\"){name}}"}'

Did this page help you?