Migrate donor field data between custom JSON and standardized columns
Kicks off a background migration that copies donor field values either from per-form json_fields into the standardized donor columns (e.g. first_name, phone, street) or vice versa. The custom_to_standardized direction routes through DonorStandardizationService::startMigration (returns the run record); standardized_to_custom dispatches MigrateDonorFieldsJob directly. Optional mapping overrides the default custom-key mapping. Requires permission: donors_manage.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Body
Donor form whose data to migrate. Must belong to the authenticated client and be of type=donor.
42
Direction of the migration. Any other value returns 422.
custom_to_standardized, standardized_to_custom "custom_to_standardized"
Optional override of the default custom-key → standardized-key map. Defaults to MigrateDonorFieldsJob::getDefaultCustomKeys() when omitted. Non-array values are ignored.