Long Text
The long text column holds texts of up to 2000 characters in length.
Check out our help center to learn more about the column: The Long Text Column.
You can update a long text column with both a simple string and a JSON string.
Simple strings
To update the long text column, send a string with up to 2000 characters.
For example: "Sample text".
JSON
To update the long text column, send a string up to 2000 characters with the key “text”.
For example: "{"text":"Sample text"}".
Code example
mutation {
change_multiple_column_values(item_id:11111, board_id:22222, column_values: "{\"long_text1\" : {\"text\" : \"Sample text\"}}") {
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: "{\"long_text1\" : {\"text\" : \"Sample text\"}}"
})
})
})
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:\"{\\\"long_text1\\\" : {\\\"text\\\" : \\\"Sample text\\\"}}\"){name}}"}'
Updated about 1 year ago
Did this page help you?