recutils add field in record

C++
# Add the fielf field_name with value field_value
# in record with field id set to 1
recset -e "id=1" -f 'field_name' -a 'field_value'
Source

Also in C++: