Update airport contribution availability
curl --request PATCH \
--url https://v2.stopbars.com/divisions/{id}/airports/{airportId}/contributions \
--header 'Content-Type: application/json' \
--header 'X-Vatsim-Token: <api-key>' \
--data '
{
"contributionsEnabled": true
}
'import requests
url = "https://v2.stopbars.com/divisions/{id}/airports/{airportId}/contributions"
payload = { "contributionsEnabled": True }
headers = {
"X-Vatsim-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Vatsim-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({contributionsEnabled: true})
};
fetch('https://v2.stopbars.com/divisions/{id}/airports/{airportId}/contributions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Divisions
Update airport contribution availability
PATCH
/
divisions
/
{id}
/
airports
/
{airportId}
/
contributions
Update airport contribution availability
curl --request PATCH \
--url https://v2.stopbars.com/divisions/{id}/airports/{airportId}/contributions \
--header 'Content-Type: application/json' \
--header 'X-Vatsim-Token: <api-key>' \
--data '
{
"contributionsEnabled": true
}
'import requests
url = "https://v2.stopbars.com/divisions/{id}/airports/{airportId}/contributions"
payload = { "contributionsEnabled": True }
headers = {
"X-Vatsim-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Vatsim-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({contributionsEnabled: true})
};
fetch('https://v2.stopbars.com/divisions/{id}/airports/{airportId}/contributions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Was this page helpful?
