---
title: "POST /api/spend-tracker/league-properties"
method: POST
path: "/api/spend-tracker/league-properties"
tags: ["Spend tracker"]
---

# POST /api/spend-tracker/league-properties

`POST /api/spend-tracker/league-properties`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/spend-tracker/league-properties`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/spend-tracker/league-properties/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates/updates Buckets and Droplets in specific LeaguePropertyBuckets

## Request body

- LeaguePropertyBucketsUpdateRequest
  - `buckets` BucketLeagueProperty[], required
    - `id` integer
    - `league_id` integer
    - `season_id` integer
    - `name` string
    - `league_minimum_calculated` integer
    - `league_minimum_estimated` integer
    - `droplets` DropletLeagueProperty[]
      - `id` integer
      - `drop_id` integer
      - `bucket_id` integer
      - `bucket_name` string
      - `revenue` RevenueProperty
        - `id` integer
        - `recipient_id` integer
        - `season_id` integer
        - `min` integer
        - `max` integer
        - `is_actual` integer
        - `public_url` string
        - `notes` string
    - `revenue` RevenueLeagueBucket
      - `id` integer
      - `recipient_id` integer
      - `season_id` integer
      - `min` integer
      - `max` integer
      - `is_actual` integer
      - `notes` string
  - `revenue` RevenueLeague, required
    - `id` integer
    - `recipient_id` integer
    - `season_id` integer
    - `min` integer
    - `max` integer
    - `is_actual` boolean
    - `public_url` string

## Response `200`

League data, revenue and buckets with revenus in season

- LeaguePropertyBucketsShowResource
  - `spendTrackerLeague` object
    - `league_id` integer
    - `league_name` string
    - `season_id` integer
    - `season_name` string
  - `buckets` BucketLeaguePropertyResource[]
    - `id` integer
    - `league_id` integer
    - `season_id` integer
    - `name` string
    - `droplets` DropletLeaguePropertyResource[]
      - `id` integer
      - `bucket_id` integer
      - `drop_id` integer
      - `drop_name` string
      - `total_followers` integer
      - `primary_market` string
      - `market_rank` integer
      - `revenue` RevenueResource
        - `id` integer
        - `recipient_id` integer
        - `season_id` integer
        - `min` integer
        - `max` integer
        - `is_actual` integer
        - `public_url` string
        - `currency` string
    - `revenue` RevenueResource
      - `id` integer
      - `recipient_id` integer
      - `season_id` integer
      - `min` integer
      - `max` integer
      - `is_actual` integer
      - `public_url` string
      - `currency` string
    - `meta` object
      - `revenue_calculated` RevenueCalculatedResource
        - `min` integer
        - `max` integer
        - `currency` string
        - `is_calculated` boolean
        - `is_predicted` boolean
        - `accuracy` PredictionAccuracyResource
          - `classification` integer
          - `percentage` number
          - `exceeding` boolean
      - `revenue_ignored` RevenueCalculatedResource
        - `min` integer
        - `max` integer
        - `currency` string
        - `is_calculated` boolean
        - `is_predicted` boolean
        - `accuracy` PredictionAccuracyResource
          - `classification` integer
          - `percentage` number
          - `exceeding` boolean
  - `revenue` union
    - RevenueLeagueResource
      - `id` integer
      - `recipient_id` integer
      - `season_id` integer
      - `min` integer
      - `max` integer
      - `is_actual` boolean
      - `public_url` string
    - RevenueCalculatedResource
      - `min` integer
      - `max` integer
      - `currency` string
      - `is_calculated` boolean
      - `is_predicted` boolean
      - `accuracy` PredictionAccuracyResource
        - `classification` integer
        - `percentage` number
        - `exceeding` boolean
  - `meta` object
    - `revenue_calculated` RevenueCalculatedResource
      - `min` integer
      - `max` integer
      - `currency` string
      - `is_calculated` boolean
      - `is_predicted` boolean
      - `accuracy` PredictionAccuracyResource
        - `classification` integer
        - `percentage` number
        - `exceeding` boolean
    - `revenue_ignored` RevenueCalculatedResource
      - `min` integer
      - `max` integer
      - `currency` string
      - `is_calculated` boolean
      - `is_predicted` boolean
      - `accuracy` PredictionAccuracyResource
        - `classification` integer
        - `percentage` number
        - `exceeding` boolean

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
