Set customer-unit cap
Set customer-unit cap
Authentication
Path parameters
Your own id for the unit (its externalId), unique within this customer.
Request
Period length. Periods start on the day-of-month of effectiveFrom (UTC), clamped in shorter months.
The credits currency to cap. Omit it only when the organization has exactly one credits currency, which is then used; otherwise it is required.
ISO 8601 timestamp. When the cap starts applying and the anchor day for its periods (UTC). Defaults to now when omitted. Spend earlier in the period that contains it still counts toward the cap.
Response
Your own id for the unit (its externalId), the identifier the unit and cap routes take.
The credits currency the cap was set on: the requested creditsCurrencyId, or the organization’s only credits currency when it was omitted.
The cap version just recorded. It starts applying at its effectiveFrom, which may be in the future, and is open (effectiveUntil is null).
Usage in the current period, when the returned version is in force now and usage is available; otherwise null.