Skip to main content
POST
/
admin
/
model-pricing
/
import-defaults
Import default pricing
curl --request POST \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/model-pricing/import-defaults \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "imported": 123
}

Authorizations

Authorization
string
header
required

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.

Body

application/json
ids
string<uuid>[]

Subset of default rule ids to import. Empty / omitted imports all.

sync_mode
enum<string>

How the row tracks Barndoor's managed defaults:

  • tracking — show the user a prompt when defaults change
  • pinned — never sync; this is your number
  • auto — silently follow updates to the managed defaults
Available options:
tracking,
pinned,
auto

Response

200 - application/json

Number of rows imported

imported
integer