Hanzo AI
OpenapiPricing

Create optout

Removes the caller's OWN org from a beta item's grant list, the reverse of OptIntoBeta and idempotent.

POST /v1/pricing/enablement/optout

Addresshttps://api.hanzo.ai/v1/pricing/enablement/optout
MethodPOST
Operationpost_pricing_enablement_optout
AuthAuthorization: Bearer $HANZO_API_KEY

Removes the caller's OWN org from a beta item's grant list, the reverse of OptIntoBeta and idempotent. The org is the caller's validated one, so this can never revoke another org's grant. Requires a signed-in caller with an org.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
idbodystringID is the item within that namespace.
kindbodystringKind is the item's namespace: "model", "provider" or "feature".

Response

StatusBodyMeaning
200userEnablementItemok

200 body — 6 fields.

FieldInTypeAlwaysDescription
canOptInbodybooleanCanOptIn is whether POST /v1/pricing/enablement/optin would do anything here: the item is in beta and this org is not on its list yet.
effectivebodybooleanEffective is whether the caller's org may use the item right now, which is the field to branch on: true for any ga item, for a beta this org holds, and never…
idbodystringID is the item within that namespace — a model id, a provider name, or a feature key.
kindbodystringKind is the namespace the id lives in: "model", "provider" or "feature".
optedInbodybooleanOptedIn is whether the caller's org is on this item's beta grant list.
statebodystringState is the item's GLOBAL availability — "off", "beta" or "ga" — which is the operator's setting and not this caller's answer.

Failure carries the platform error shape — see Errors.

Examples

hanzo pricing enablement optout

Pricing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page