The link column stores a link to a webpage.

Check out our help center to learn more about the column: The Link Column.

You can update a link column with both a simple string and a JSON string.

Simple strings

To update a link column, send the URL (including http/https) and the display text, separated with a space. You can include spaces in the display text.

For example: "http://monday.com go to monday!"

JSON

To update a link column, write the URL (including http/https) in the url field, and the display text in the text field.

For example: "{"url":"http://monday.com\",\"text\":\"go to monday!"}"

Code example

mutation {
  change_multiple_column_values(item_id:11111, board_id:22222, column_values: "{\"link2\" : {\"url\" : \"http://monday.com\", \"text\":\"go to monday!\"}}") {
    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: "{\"link2\" : {\"url\" : \"http://monday.com\", \"text\": \"go to monday!\"}}"
    })
  })
})
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:\"{\\\"link2\\\" : {\\\"url\\\" : \\\"http://monday.com\\\", \\\"text\\\" : \\\"go to monday!\\\"}}\"){name}}"}'

Did this page help you?