Hanzo AI
OpenapiEntitlement

Create orgs

Post turns products on or off for an org and returns the enabled set afterwards.

POST /v1/entitlement/orgs/{org}

Addresshttps://api.hanzo.ai/v1/entitlement/orgs/{org}
MethodPOST
Operationpost_entitlement_orgs_by_org
AuthAuthorization: Bearer $HANZO_API_KEY

Post turns products on or off for an org and returns the enabled set afterwards.

A product may only be ENABLED if the org's plan already ENTITLES it, so enabling never spends new money — a product the plan does not grant answers 402 and the console routes that to an upgrade prompt. DISABLING is never gated. A platform super admin bypasses the plan check (operator comp/grant) and may target any org; everyone else may only change their own. Commerce unreachable is a 503, never an implicit yes.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
orgpathstringyes
addbodystring[]Add is the product ids to turn ON.
removebodystring[]Remove is the product ids to turn OFF.

Response

StatusBodyMeaning
200entitlementsViewok

200 body — 1 field.

FieldInTypeAlwaysDescription
enabledbodystring[]Enabled is the org's turned-on product ids, sorted.

Failure carries the platform error shape — see Errors.

Examples

hanzo entitlement create

Entitlement API · All Hanzo APIs · Interactive reference

How is this guide?

On this page