Skip to contents

Validate upload action, form-data mappings, and required columns before sending write requests.

Usage

prepare_upload_rows(
  df,
  form_data = list(),
  action = "add_node",
  properties = NULL,
  merging_type = "0",
  database = "SocioMap"
)

Arguments

df

Data frame or list of row objects to upload.

form_data

Named list matching CatMapper edit-page formData.

action

Upload action option. See upload_rows() for the full CatMapperJS crosswalk of supported values and GUI labels.

properties

Optional vector/list of upload property names to include.

merging_type

Optional merging mode used by merge upload workflows.

database

Target database, typically "SocioMap" or "ArchaMap".

Value

A named list with validated upload components.