Link a lead-on to a stopbar for auto-toggle
curl --request POST \
--url https://v2.stopbars.com/airports/{icao}/points/{stopbarId}/link \
--header 'Content-Type: application/json' \
--header 'X-Vatsim-Token: <api-key>' \
--data '
{
"leadOnId": "<string>"
}
'import requests
url = "https://v2.stopbars.com/airports/{icao}/points/{stopbarId}/link"
payload = { "leadOnId": "<string>" }
headers = {
"X-Vatsim-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)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));Points
Link a lead-on to a stopbar for auto-toggle
POST
/
airports
/
{icao}
/
points
/
{stopbarId}
/
link
Link a lead-on to a stopbar for auto-toggle
curl --request POST \
--url https://v2.stopbars.com/airports/{icao}/points/{stopbarId}/link \
--header 'Content-Type: application/json' \
--header 'X-Vatsim-Token: <api-key>' \
--data '
{
"leadOnId": "<string>"
}
'import requests
url = "https://v2.stopbars.com/airports/{icao}/points/{stopbarId}/link"
payload = { "leadOnId": "<string>" }
headers = {
"X-Vatsim-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)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));Was this page helpful?
