{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tyk/json-schema/tyk-organisation-document-schema.json",
  "title": "OrganisationDocument",
  "description": "The fields that describe the \"organisation\" object as stored in Tyk",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tyk-organisations-api-openapi.yml#/components/schemas/OrganisationDocument",
  "properties": {
    "id": {
      "type": "string"
    },
    "owner_name": {
      "type": "string"
    },
    "owner_slug": {
      "type": "string"
    },
    "cname_enabled": {
      "type": "boolean"
    },
    "cname": {
      "type": "string"
    },
    "apis": {
      "items": {
        "$ref": "#/$defs/ApiDocument"
      },
      "type": "array"
    },
    "sso_enabled": {
      "type": "boolean"
    },
    "developer_quota": {
      "type": "integer"
    },
    "developer_count": {
      "type": "integer"
    },
    "event_options": {
      "additionalProperties": {
        "$ref": "#/$defs/EventConfig"
      },
      "type": "object"
    },
    "hybrid_enabled": {
      "type": "boolean"
    },
    "ui": {
      "$ref": "#/$defs/UIOptions"
    },
    "org_options_meta": {
      "type": "object"
    },
    "open_policy": {
      "$ref": "#/$defs/OpenPolicyConf"
    },
    "additional_permissions": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "owner_name",
    "owner_slug",
    "cname_enabled",
    "cname",
    "apis",
    "sso_enabled",
    "developer_quota",
    "developer_count",
    "event_options",
    "hybrid_enabled",
    "ui",
    "org_options_meta",
    "open_policy",
    "additional_permissions"
  ],
  "$defs": {
    "ApiDocument": {
      "properties": {
        "api_human_name": {
          "type": "string"
        },
        "api_id": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "api_human_name",
        "api_id"
      ]
    },
    "EventConfig": {
      "properties": {
        "webhook": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "redis": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "webhook",
        "email",
        "redis"
      ]
    },
    "OpenPolicyConf": {
      "properties": {
        "rules": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "rules",
        "enabled"
      ]
    },
    "UIOptions": {
      "properties": {
        "languages": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "hide_help": {
          "type": "boolean"
        },
        "default_lang": {
          "type": "string"
        },
        "login_page": {
          "type": "object"
        },
        "nav": {
          "type": "object"
        },
        "uptime": {
          "type": "object"
        },
        "portal_section": {
          "type": "object"
        },
        "designer": {
          "type": "object"
        },
        "dont_show_admin_sockets": {
          "type": "boolean"
        },
        "dont_allow_license_management": {
          "type": "boolean"
        },
        "dont_allow_license_management_view": {
          "type": "boolean"
        },
        "cloud": {
          "type": "boolean"
        },
        "dev": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "languages",
        "hide_help",
        "default_lang",
        "login_page",
        "nav",
        "uptime",
        "portal_section",
        "designer",
        "dont_show_admin_sockets",
        "dont_allow_license_management",
        "dont_allow_license_management_view",
        "cloud",
        "dev"
      ]
    }
  }
}