Restore an archived pricing rule
Resurrects a previously archived pricing rule. The id should be the
archived version’s id, as returned from
GET /admin/model-pricing/archived.
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
Response
The restored 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
