Apply resume suggestions for a job
apply_vacancy_resume_suggestionsApply resume-improvement suggestions from a vacancy analysis. indices (into the vacancy's resume_suggestions list from get_vacancy_detail) pick which to apply; omitted applies all except the questions without a fact and the suggestions whose last apply changed nothing (unchanged_suggestion_indices). target='copy' rewrites an inactive tailored copy linked to this vacancy (reused when it exists, otherwise duplicated from the active resume — consumes one resume generation, 'limit_exceeded' on quota); target='current' rewrites the active resume. Without target it goes where the Tailoring tab defaults: the copy when one exists or a resume generation is left, otherwise the active resume; copy_created and resume_id in the output say which. Runs asynchronously — returns a task_id and the target resume_id; each applied suggestion saves a new resume version; get_task_status(task_id) reports progress and the outcome, with unchanged_count for suggestions that changed nothing because the resume states nothing they build on. A suggestion whose kind is 'needs_fact' is a question to the user: it applies only with their own answer in facts. Returns 'not_found' if the vacancy does not belong to the current user, 'invalid_payload' if there are no suggestions, an index is out of range, a fact is too long or nothing is left to apply, 'fact_required' if a 'needs_fact' index has no fact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Always 'processing' — the job runs asynchronously. | processing |
| task_id | Yes | Background task id (informational; get_vacancy_detail shows progress). | |
| resume_id | No | Id of the resume the suggestions are being applied to. | |
| vacancy_id | Yes | Id of the vacancy analysis the task operates on. | |
| copy_created | No | True when a new tailored copy was created for this call (target='copy'). |