{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-new-team-request-schema.json",
  "title": "NewTeamRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-team-management-api-openapi.yml#/components/schemas/NewTeamRequest",
  "properties": {
    "team_alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Alias"
    },
    "team_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Id"
    },
    "organization_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Organization Id"
    },
    "admins": {
      "items": {},
      "type": "array",
      "title": "Admins",
      "default": []
    },
    "members": {
      "items": {},
      "type": "array",
      "title": "Members",
      "default": []
    },
    "members_with_roles": {
      "items": {
        "$ref": "#/$defs/Member"
      },
      "type": "array",
      "title": "Members With Roles",
      "default": []
    },
    "team_member_permissions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Member Permissions"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    },
    "tpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tpm Limit"
    },
    "rpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rpm Limit"
    },
    "max_budget": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Budget"
    },
    "soft_budget": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Soft Budget"
    },
    "budget_duration": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Duration"
    },
    "budget_limits": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/BudgetLimitEntry"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Limits"
    },
    "models": {
      "items": {},
      "type": "array",
      "title": "Models",
      "default": []
    },
    "blocked": {
      "type": "boolean",
      "title": "Blocked",
      "default": false
    },
    "router_settings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Router Settings"
    },
    "access_group_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Access Group Ids"
    },
    "default_team_member_models": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Team Member Models"
    },
    "model_aliases": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Aliases"
    },
    "tags": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    },
    "guardrails": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Guardrails"
    },
    "policies": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Policies"
    },
    "prompts": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prompts"
    },
    "object_permission": {
      "anyOf": [
        {
          "$ref": "#/$defs/LiteLLM_ObjectPermissionBase"
        },
        {
          "type": "null"
        }
      ]
    },
    "allowed_passthrough_routes": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Passthrough Routes"
    },
    "disable_global_guardrails": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Disable Global Guardrails"
    },
    "secret_manager_settings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Secret Manager Settings"
    },
    "model_rpm_limit": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Rpm Limit"
    },
    "rpm_limit_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "guaranteed_throughput",
            "best_effort_throughput"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Rpm Limit Type"
    },
    "tpm_limit_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "guaranteed_throughput",
            "best_effort_throughput"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Tpm Limit Type"
    },
    "model_tpm_limit": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Tpm Limit"
    },
    "mcp_rpm_limit": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mcp Rpm Limit"
    },
    "team_member_budget": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Member Budget"
    },
    "team_member_rpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Member Rpm Limit"
    },
    "team_member_tpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Member Tpm Limit"
    },
    "team_member_key_duration": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Member Key Duration"
    },
    "team_member_budget_duration": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Member Budget Duration"
    },
    "allowed_vector_store_indexes": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AllowedVectorStoreIndexItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Vector Store Indexes"
    },
    "enforced_batch_output_expires_after": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enforced Batch Output Expires After"
    },
    "enforced_file_expires_after": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enforced File Expires After"
    }
  },
  "type": "object",
  "$defs": {
    "AllowedVectorStoreIndexItem": {
      "properties": {
        "index_name": {
          "type": "string",
          "title": "Index Name"
        },
        "index_permissions": {
          "items": {
            "type": "string",
            "enum": [
              "read",
              "write"
            ]
          },
          "type": "array",
          "title": "Index Permissions"
        }
      },
      "type": "object",
      "required": [
        "index_name",
        "index_permissions"
      ],
      "title": "AllowedVectorStoreIndexItem"
    },
    "BudgetLimitEntry": {
      "properties": {
        "budget_duration": {
          "type": "string",
          "title": "Budget Duration"
        },
        "max_budget": {
          "type": "number",
          "title": "Max Budget"
        },
        "reset_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reset At"
        }
      },
      "type": "object",
      "required": [
        "budget_duration",
        "max_budget"
      ],
      "title": "BudgetLimitEntry",
      "description": "A single budget window with its own limit and independent reset schedule."
    },
    "LiteLLM_ObjectPermissionBase": {
      "properties": {
        "mcp_servers": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Servers"
        },
        "mcp_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Access Groups"
        },
        "mcp_tool_permissions": {
          "anyOf": [
            {
              "additionalProperties": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Permissions"
        },
        "mcp_toolsets": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Toolsets"
        },
        "blocked_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blocked Tools"
        },
        "vector_stores": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vector Stores"
        },
        "agents": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agents"
        },
        "agent_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Access Groups"
        },
        "models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Models"
        },
        "search_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Search Tools"
        },
        "mcp_tool_search_enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Search Enabled"
        }
      },
      "type": "object",
      "title": "LiteLLM_ObjectPermissionBase"
    },
    "Member": {
      "properties": {
        "user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Id",
          "description": "The unique ID of the user to add. Either user_id or user_email must be provided"
        },
        "user_email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Email",
          "description": "The email address of the user to add. Either user_id or user_email must be provided"
        },
        "role": {
          "type": "string",
          "enum": [
            "admin",
            "user"
          ],
          "title": "Role",
          "description": "The role of the user within the team. 'admin' users can manage team settings and members, 'user' is a regular team member"
        }
      },
      "type": "object",
      "required": [
        "role"
      ],
      "title": "Member"
    }
  }
}