{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-create-managed-tenant-request-schema.json",
  "title": "CreateManagedTenantRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-mssp-managed-tenant-lifecycle-endpoints-api-openapi.yml#/components/schemas/CreateManagedTenantRequest",
  "required": [
    "companyName",
    "contactInfo",
    "licenseInfo",
    "name",
    "planType",
    "region"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 63,
      "minLength": 3,
      "type": "string"
    },
    "companyName": {
      "maxLength": 63,
      "minLength": 3,
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "tenantGroupId": {
      "type": "string",
      "format": "uuid"
    },
    "planType": {
      "type": "string",
      "enum": [
        "RS_STANDARD",
        "RS_FOUNDATION",
        "RS_ADVANCED"
      ]
    },
    "contactInfo": {
      "$ref": "#/$defs/ContactInfo"
    },
    "licenseInfo": {
      "$ref": "#/$defs/LicenseInfo"
    },
    "modules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModuleInfoRequest"
      }
    }
  },
  "$defs": {
    "ContactInfo": {
      "required": [
        "email",
        "firstName",
        "lastName"
      ],
      "type": "object",
      "properties": {
        "firstName": {
          "maxLength": 63,
          "minLength": 1,
          "type": "string"
        },
        "lastName": {
          "maxLength": 63,
          "minLength": 1,
          "type": "string"
        },
        "email": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        }
      }
    },
    "LicenseInfo": {
      "required": [
        "allocatedCredits",
        "licensePoolId"
      ],
      "type": "object",
      "properties": {
        "licensePoolId": {
          "type": "string"
        },
        "allocatedCredits": {
          "minimum": 1,
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "ModuleInfoRequest": {
      "required": [
        "enabled",
        "featureName"
      ],
      "type": "object",
      "properties": {
        "featureName": {
          "pattern": "iam-security",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "additionalData": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      }
    }
  }
}