apply_refinement
Apply the proposed change of a search, after the user approves it.
Candidates who fail the new rules are set aside. undo_refinement takes the change back.
- Scope:
signals:searches.write - Changes data: Yes. Call it only after the user approves the result of
get_refinement.
Input
| Parameter | Type | Required | Value |
|---|---|---|---|
searchId | string | Yes | The search id |
searchAgain | boolean | No | true (default): also search for new people with the change. false: only filter the current candidates. |
Returns
The applied rules. With searchAgain set to true, the search for new people takes some minutes. Read the result with get_shortlist.
Errors
- "This search has no proposed change." Call
refine_searchfirst. - "Signals still checks the candidates against the change." Call
get_refinementin about a minute, then try again. - "The search changed after this proposal was made." Propose the change again with
refine_search.