Update Autofill Profile
set_autofill_profileSave job application-form answers so the Companion can fill forms. Only the sections and keys you pass change; work permits merge per country and custom answers are added or replaced.
Instructions
Save the user's application-form answers: the profile get_autofill_profile reads and the Companion fills forms from. Only the sections passed change. Inside personal, eligibility, preferences and each country's work-permit answers only the keys passed change, and a null removes one; education and languages replace the stored list whole (get_autofill_profile returns them). Each custom answer replaces the saved one with the same question (case and spacing ignored) and the same only_for and only_for_kind, or is added: for an answer held for one company or city, send its only_for and only_for_kind as get_autofill_profile shows them, or a second scoped answer is added. A saved answer is never removed here, so one the Companion learned meanwhile stays (removing one is the user's, in Profile). A work-permit answer is per country and a form question without one is asked on that form, never defaulted; setup counts the answers of each country in apply_in (set_markets). Diversity (EEO) answers have no field here: they and their consent are the user's, in Profile. An unknown section, key or market key writes nothing. Returns {profile, setup}: the saved profile without eeo, and setup status's form-answer readiness (readiness 0 to 1, groups, blocking, work_auth_by_country counts), null when that read fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| custom | No | ||
| personal | No | ||
| education | No | ||
| languages | No | ||
| eligibility | No | ||
| preferences | No | ||
| work_auth_by_country | No | Work-permit answers by market key. Each country's answers merge key by key; a country set to null loses its answers; a country left out keeps them. |