Country
The country column represents a country. You can find the list of available countries here.
Check out our help center to learn more about this column: The Country Column.
You can update a country column with a JSON string. Simple string updates are not supported.
JSON
To update a country column, send the ISO-2 country code (a two letter code) and the country name.
Code example
mutation {
change_multiple_column_values(item_id:11111, board_id:22222, column_values:"{\"country3\":{\"countryCode\":\"US\",\"countryName\":\"United States\"}}"){
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: "{\"country3\": {\"countryCode\" : \"US\", \"countryName\": \"United States\"}}"
})
})
})
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:\"{\\\"country3\\\" : {\\\"countryCode\\\" : \\\"US\\\", \\\"countryName\\\" : \\\"United States\\\"}}\"){name}}"}'
Updated about 1 year ago
Did this page help you?