{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bettermenu/json-schema/bettermenu-update-org-settings-request-schema.json",
  "title": "UpdateOrgSettingsRequest",
  "description": "Partial update of the caller's own organization settings.\n\nCarries no organization identifier, deliberately. The organization is taken\nfrom the authenticated request state, so there is no id for a caller to\ntamper with, no ownership check to author, and no way to address another\norganization's settings. ``extra=\"forbid\"`` makes that structural rather\nthan conventional: a body that supplies ``org_id`` is rejected outright\ninstead of having the field quietly ignored.\n\nEvery field is optional; a field left unset is left as it is.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bettermenu-org-api-openapi.yml#/components/schemas/UpdateOrgSettingsRequest",
  "properties": {
    "metered_usage_enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metered Usage Enabled",
      "description": "Whether the organization accepts charges for usage beyond its plan's included monthly allowance. When false, requests that would be charged are refused; requests within the included allowance are unaffected."
    },
    "label_findings_policy": {
      "anyOf": [
        {
          "$ref": "#/$defs/LabelFindingsPolicy"
        },
        {
          "type": "null"
        }
      ],
      "description": "What a label export does when the label has findings nobody has addressed: 'acknowledge' asks the caller to acknowledge them and then exports; 'block' refuses the export while they stand."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "$defs": {
    "LabelFindingsPolicy": {
      "type": "string",
      "enum": [
        "acknowledge",
        "block"
      ],
      "title": "LabelFindingsPolicy",
      "description": "What an export does when the label has findings nobody has addressed."
    }
  }
}