Submit a new contribution
curl --request POST \
--url https://v2.stopbars.com/contributions \
--header 'Content-Type: application/json' \
--header 'X-Vatsim-Token: <api-key>' \
--data '
{
"airportIcao": "<string>",
"packageName": "<string>",
"submittedXml": "<string>"
}
'import requests
url = "https://v2.stopbars.com/contributions"
payload = {
"airportIcao": "<string>",
"packageName": "<string>",
"submittedXml": "<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({airportIcao: '<string>', packageName: '<string>', submittedXml: '<string>'})
};
fetch('https://v2.stopbars.com/contributions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Contributions
Submit a new contribution
POST
/
contributions
Submit a new contribution
curl --request POST \
--url https://v2.stopbars.com/contributions \
--header 'Content-Type: application/json' \
--header 'X-Vatsim-Token: <api-key>' \
--data '
{
"airportIcao": "<string>",
"packageName": "<string>",
"submittedXml": "<string>"
}
'import requests
url = "https://v2.stopbars.com/contributions"
payload = {
"airportIcao": "<string>",
"packageName": "<string>",
"submittedXml": "<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({airportIcao: '<string>', packageName: '<string>', submittedXml: '<string>'})
};
fetch('https://v2.stopbars.com/contributions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
VATSIM authentication token obtained via OAuth callback.
Body
application/json
Response
Contribution created
Was this page helpful?
