A decoy is a tactic in which you scarifice a piece to force or cause an opponent to move one of their pieces to a certain square. The sacrificed piece is also known as a decoy. The opponent's piece is said to be deflected to the target square.
According to Wikipedia, the term attraction is used when the opponent's king is the piece which is deflected.
https://en.wikipedia.org/wiki/Decoy_(chess)
Whats the difference of a decoy, attraction, and deflection?