Edit a scheduled pricing version
Updates a future-dated (scheduled) pricing version in place. Past
versions are immutable — to change the active price create a new
version via POST /admin/model-pricing instead.
Authorizations
JWT obtained through Barndoor's authentication flow. Pass the token
verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's
loginInteractive() helper to obtain a token in scripts and notebooks.
Path Parameters
Body
Edit a scheduled (future-dated) pricing version in place. Past versions are immutable. Updating a current version is a no-op; create a new version instead.
How the row tracks Barndoor's managed defaults:
tracking— show the user a prompt when defaults changepinned— never sync; this is your numberauto— silently follow updates to the managed defaults
tracking, pinned, auto Response
The updated pricing version
A single pricing rule version. Each "rule" (logical row) has a stack
of versions; the latest version with effective_from <= now() is the
one that bills.
Upstream model name (or * wildcard)
"gpt-4o-mini"
0.15
0.6
When this version takes effect. Past = active; future = scheduled
How the row tracks Barndoor's managed defaults:
tracking— show the user a prompt when defaults changepinned— never sync; this is your numberauto— silently follow updates to the managed defaults
tracking, pinned, auto How this version of the pricing rule was produced
admin_create, admin_edit, admin_schedule, import, sync_manual, sync_auto, admin_archive, admin_restore When set, the rule only applies to routes served by this provider
