you can use update_field() to set the value. Pass an array for the values
array(
// nested array for each row
array(
// element for each field
'field_409832048038' => 'value',
'field_04230949393a' => 'value',
// etc
)
)
I show field keys because it’s better to use field keys when updating fields that may not have values yet.