Skip to main content
POST
Import default pricing

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