Skip to Content
Signals Docs

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

ParameterTypeRequiredValue
searchIdstringYesThe search id
searchAgainbooleanNotrue (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_search first.
  • "Signals still checks the candidates against the change." Call get_refinement in about a minute, then try again.
  • "The search changed after this proposal was made." Propose the change again with refine_search.

On this page