Skip to main content
DELETE
Delete a model pricing rule

Authorizations

Authorization
string
header
required

A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.

Scopes

openid

Issue an OIDC ID token identifying the caller.

profile

Read the caller's basic profile claims.

email

Read the caller's email address.

Path Parameters

id
string<uuid>
required

Identifier, a UUID

Response

Deletion acknowledgement

DELETE /admin/model-pricing/{id} — archiving a pricing rule is not a plain delete, so the response says what it actually did.

archived
boolean
required

Whether an active version was archived. A count would be wrong: the handler sets this from a boolean.

cancelled_scheduled
integer<int64>
required

How many scheduled future versions were cancelled.

deleted
boolean
required

Always true.

mode
string
required

Which action was taken, e.g. whether a scheduled change was cancelled rather than an active rule archived.