{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CreateManagedTenantRequest",
  "description": "CreateManagedTenantRequest schema from Prisma Cloud: Managed Security Service Provider (MSSP)",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-cloud-mssp-api-create-managed-tenant-request-schema.json",
  "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": {
      "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"
        }
      }
    },
    "modules": {
      "type": "array",
      "items": {
        "required": [
          "enabled",
          "featureName"
        ],
        "type": "object",
        "properties": {
          "featureName": {
            "pattern": "iam-security",
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "additionalData": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      }
    }
  },
  "required": [
    "companyName",
    "contactInfo",
    "licenseInfo",
    "name",
    "planType",
    "region"
  ]
}
