const options = {
method: 'POST',
headers: {'X-Vatsim-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({leadOnId: '<string>'})
};
fetch('https://v2.stopbars.com/airports/{icao}/points/{stopbarId}/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));