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

# POST /api/spend-tracker/league-assets/custom-bucket

`POST /api/spend-tracker/league-assets/custom-bucket`

## 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-assets/custom-bucket`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/spend-tracker/league-assets/custom-bucket/post.ts> (a function with typed inputs; its response is checked against the schema)

Assing an asset to a different bucket, only for a certain deal

## Request body

- SaveCustomAssetBucketForDealRequest
  - `property_id` integer, required
  - `brand_id` integer, required
  - `season_id` integer, required
  - `parent_line` integer
  - `asset_id` integer, required
  - `original_bucket_id` integer, required
  - `custom_bucket_id` integer, required

## Response `200`

League Asset Buckets

- DealBucketAssetsGetDealAssetsByBucketsResource[]
  - `deal` object
    - `property_id` integer
    - `property_name` string
    - `brand_id` integer
    - `brand_name` string
    - `season_id` integer
    - `season_season` string
    - `season_name` string
    - `has_property_buckets` boolean: True when the property has its own asset buckets for the season; false when the league's buckets apply
  - `bucketsWithDealAssets` LeagueAssetBucketResource[]
    - `id` integer
    - `league_id` integer
    - `season_id` integer
    - `name` string
    - `weight` number
    - `cap` integer
    - `property_id` integer: Only on a property's own buckets
    - `is_property_bucket` boolean: Only on a property's own buckets
    - `droplets` AssetDropletResource[]
      - `id` integer
      - `bucket_id` integer
      - `drop_id` integer
      - `drop_name` string
      - `drop_description` string
      - `item_platform` string
      - `item_subplatform` string
      - `item_grouping` string
    - `revenue` RevenueCalculatedResource
      - `min` integer
      - `max` integer
      - `currency` string
      - `is_calculated` boolean
      - `is_predicted` boolean
      - `accuracy` PredictionAccuracyResource
        - `classification` integer
        - `percentage` number
        - `exceeding` boolean
    - `dealAssets` DealAssetAuditResource
      - `asset_id` integer
      - `asset_name` string
      - `asset_description` string
      - `isSponsor` integer
      - `item_platform` string
      - `item_grouping` string
      - `item_images_count` integer
      - `item_videos_count` integer
      - `item_social_media_count` integer
      - `description` object[]
        - `id` integer
        - `description` string

## Other responses

- `422`: A bucket is not one of the property's asset buckets for the season

---

[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)
