I’ve realized I need to use the field_key
to update the fields since the post is being created.
Is there a function which would allow me to get the field objects by name, so I can loop over fields by name and get the keys to update each field which contains a value from the form, rather than many update_field functions?