Spend tracker
POST /api/spend-tracker/league-properties
Creates/updates Buckets and Droplets in specific LeaguePropertyBuckets
Request
- Base URLhttps://api.sponsorunited.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"buckets": [
{
"name": "B - Naming Rights",
"droplets": [
{
"bucket_name": "High Income Bucket"
}
],
"revenue": {
"notes": "a note"
}
}
],
"revenue": {
"public_url": "https://www.sponsorunited.com/"
}
}Response
League data, revenue and buckets with revenus in season
Example response
{
"spendTrackerLeague": {
"league_name": "NFL - National Football League",
"season_name": "2021-22"
},
"buckets": [
{
"name": "Highest",
"droplets": [
{
"drop_name": "Boston Red Sox",
"primary_market": "Boston"
}
],
"meta": {
"revenue_calculated": {
"currency": "USD"
},
"revenue_ignored": {
"currency": "USD"
}
}
}
],
"revenue": {
"public_url": "https://www.sponsorunited.com/"
},
"meta": {
"revenue_calculated": {
"currency": "USD"
},
"revenue_ignored": {
"currency": "USD"
}
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.