upsert_role
Create or update a CV work-history role by ID during interviews, keeping roles newest-first so achievements can link to it; new roles need title, company, and start.
Instructions
Add a job role, or change some fields of an existing one by its id. Use it while
interviewing the person about their work history; their achievements go in with add_bullet,
pointing to this id. A new role needs title, company and start; roles stay in date order,
newest first. Keep the person's real title. Returns the role as saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Short role id, e.g. acme. Bullets point to it. | |
| end | No | Year it ended, e.g. "2024". "present" marks it as the current role. | |
| start | No | A year or year-month, e.g. "2021" or "2021-03". | |
| title | No | One string, or one per language: {"en": "...", "es": "..."}. | |
| company | No | Company name. | |
| context | No | One string, or one per language: {"en": "...", "es": "..."}. | |
| profile | No | Path of the profile folder. Leave it out to use the server's default (--profile or HONEST_CV_PROFILE). | |
| location | No | One string, or one per language: {"en": "...", "es": "..."}. |