{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-ecmfolder-collection-response-schema.json",
  "title": "ECMFolderCollectionResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-ecm-folder-linking-api-openapi.yml#/components/schemas/ECMFolderCollectionResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ECMFolder"
      }
    }
  },
  "$defs": {
    "ECMFolder": {
      "type": "object",
      "required": [
        "driveId",
        "itemId",
        "displayName"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the folder."
        },
        "roomId": {
          "type": "string",
          "description": "A unique identifier for the room to which the folder should be linked to."
        },
        "roomType": {
          "type": "string",
          "enum": [
            "direct",
            "group"
          ],
          "description": "The room type.\n * `direct` - 1:1 room\n * `group` - group room\n"
        },
        "driveId": {
          "type": "string",
          "description": "Sharepoint or OneDrive drive id. It can be queried via MS Graph APIs."
        },
        "itemId": {
          "type": "string",
          "description": "Sharepoint or OneDrive item id. It can be queried via MS Graph APIs."
        },
        "defaultFolder": {
          "type": "string",
          "description": "Indicates if this is the default content storage for the room."
        },
        "displayName": {
          "type": "string",
          "description": "This should match the folder name in the ECM backend."
        },
        "contentUrl": {
          "type": "string",
          "description": "Folder's content URL."
        },
        "creatorId": {
          "type": "string",
          "description": "The person ID of the person who created this folder link."
        },
        "created": {
          "type": "string",
          "description": "The date and time when the folder link was created."
        }
      }
    }
  }
}