Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Set Spend Limit changedapi/admin/spend_limits/create

Nearest release: v2.1.250, published an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+28added
Lines−2removed
From line 16 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits5to this page, all time

The whole hunk

from line 16, old and new numbered
/
lines
from line 16
1616 
1717- `scope: object`
1818 
19 Scope selecting a single member of the organization.
20 
1921 - `type: "user"`
2022 
23 Scope type. Always `user` for this scope.
24 
2125 default: user
2226 
2327 - `user_id: string`
2428 
29 Tagged ID of the member the spend limit applies to.
30 
2531- `period: optional "daily" or "monthly" or "weekly"`
2632 
2733 - `"daily"`
from line 40
3440 
3541- `SpendLimit object`
3642 
43 A configured spend limit: a cap on metered spend for one scope and period.
44 
3745 - `id: string`
3846 
47 Unique tagged ID of the spend limit (`spl_...`).
48 
3949 - `amount: string or null`
4050 
4151 Limit amount as a non-negative integer decimal string in the minor unit of `currency` (cents for USD): "50000" is $500.00. `null` means no numeric cap is configured at this scope — see the effective report for whether a limit applies.
from line 52
4252 
4353 - `created_at: string`
4454 
55 RFC 3339 datetime at which the spend limit was created.
56 
4557 format: date-time
4658 
4759 - `currency: string`
from line 62
5062 
5163 - `period: "daily" or "monthly" or "weekly"`
5264 
65 Length of the window the limit resets over. `amount` caps spend within each period.
66 
5367 - `"daily"`
5468 
5569 - `"monthly"`
from line 72
5872 
5973 - `scope: object or object or object or 2 more`
6074 
75 What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.
76 
6177 - `User object`
6278 
79 Scope selecting a single member of the organization.
80 
6381 - `type: "user"`
6482 
83 Scope type. Always `user` for this scope.
84 
6585 default: user
6686 
6787 - `user_id: string`
6888 
89 Tagged ID of the member the spend limit applies to.
90 
6991 - `SeatTier object`
7092 
7193 - `seat_tier: string`
from line 120
98120 
99121 - `type: "spend_limit"`
100122 
123 Object type. Always `spend_limit`.
124 
101125 default: spend_limit
102126 
103127 - `updated_at: string`
104128 
129 RFC 3339 datetime at which the spend limit was last modified.
130 
105131 format: date-time
106132 
107133## Example
from line 141
115141 "amount": "50000",
116142 "scope": {
117143 "type": "user",
118 "user_id": "user_id"
144 "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
119145 },
120146 "period": "monthly"
121147 }'
from line 158
132158 "period": "monthly",
133159 "scope": {
134160 "type": "user",
135 "user_id": "user_id"
161 "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
136162 },
137163 "type": "spend_limit",
138164 "updated_at": "2019-12-27T18:11:19.117Z"
Feedback