{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-add-team-members-response-schema.json",
  "title": "AddTeamMembersResponse",
  "description": "Response body for batch add members, used for 207 Multi-Status and all-failed responses.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-teams-api-openapi.yml#/components/schemas/AddTeamMembersResponse",
  "required": [
    "results"
  ],
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddTeamMemberResult"
      }
    }
  },
  "$defs": {
    "AddTeamMemberResult": {
      "required": [
        "memberId",
        "status"
      ],
      "type": "object",
      "properties": {
        "memberId": {
          "type": [
            "null",
            "string"
          ],
          "format": "uuid"
        },
        "status": {
          "type": "string"
        },
        "errorCode": {
          "type": [
            "null",
            "string"
          ]
        },
        "error": {
          "type": [
            "null",
            "string"
          ]
        },
        "email": {
          "type": [
            "null",
            "string"
          ]
        }
      },
      "description": "Result for a single member in a batch add operation. `memberId` is set for entries\nthat named a user id, `email` for entries that recorded someone without an account."
    }
  }
}