{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-teams/json-schema/microsoft-teams-microsoft-graph-teamwork-tag-schema.json",
  "title": "microsoft.graph.teamworkTag",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-teams-teams-teamworktag-api-openapi.yml#/components/schemas/microsoft.graph.teamworkTag",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "teamworkTag",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description of the tag as it appears to the user in Microsoft Teams. A teamworkTag can't have more than 200 teamworkTagMembers."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the tag as it appears to the user in Microsoft Teams."
        },
        "memberCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "The number of users assigned to the tag.",
          "format": "int32"
        },
        "tagType": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.teamworkTagType"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The type of the tag. Default is standard."
        },
        "teamId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ID of the team in which the tag is defined."
        },
        "members": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.teamworkTagMember"
          },
          "description": "Users assigned to the tag.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.teamworkTag",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.teamworkTagMember": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "teamworkTagMember",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The member's display name."
            },
            "tenantId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ID of the tenant that the tag member is a part of."
            },
            "userId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The user ID of the member."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.teamworkTagMember"
    },
    "microsoft.graph.teamworkTagType": {
      "title": "teamworkTagType",
      "enum": [
        "standard",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}