A prisoner exchange or prisoner swap is a deal between opposing sides in a conflict to release prisoners: prisoners of war, spies, hostages, etc. Sometimes, dead bodies are involved in an exchange.
In the context of kidnapping or crisis negotiation—perhaps involving armed robbery/assault or terrorism—securing the safety or return of a hostage (or hostages) may involve complying with—or appearing to comply with—any manner of reciprocal demand.
Prisoner exchange Wikipedia
Under the Geneva Conventions, prisoners whose illness or disability cannot contribute to the war effort are entitled to be repatriated to their home country. That is regardless of number of prisoners so affected; the detaining power cannot refuse a genuine request.
Under the Geneva Convention (1929), this is covered by Articles 68 to 74, and the annex. One of the largest exchange programmes was run by the International Red Cross during the Second World War under these terms. Under the Third Geneva Convention of 1949, that is covered by Articles 109 to 117.
The Second World War in Yugoslavia is notorious for the brutal struggle between the armed forces of the Third Reich and the communist-led Partisans. Less known is the fact that the two sides negotiated prisoner exchanges virtually since the beginning of the war. Under extraordinary circumstances, these early contacts evolved into a formal exchange agreement, centered on the creation of a neutral zone, quite possibly the only such in occupied Europe, where prisoners were regularly swapped until late April 1945, saving several thousand lives.