{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ECMFolder",
  "title": "ECMFolder",
  "type": "object",
  "required": [
    "driveId",
    "itemId",
    "displayName"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VybjpURUFNOnVzLWVhc3QtMl9hL1RBQlMvZDg1ZTYwNj",
      "description": "A unique identifier for the folder."
    },
    "roomId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL1JPT00vYmJjZWIxYWQtNDNmMS0zYjU4LTkxNDctZjE0YmIwYzRkMTU0",
      "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",
      "example": "123",
      "description": "Sharepoint or OneDrive drive id. It can be queried via MS Graph APIs."
    },
    "itemId": {
      "type": "string",
      "example": "456",
      "description": "Sharepoint or OneDrive item id. It can be queried via MS Graph APIs."
    },
    "defaultFolder": {
      "type": "string",
      "example": "false",
      "description": "Indicates if this is the default content storage for the room."
    },
    "displayName": {
      "type": "string",
      "example": "OneDrive folder for shared documents",
      "description": "This should match the folder name in the ECM backend."
    },
    "contentUrl": {
      "type": "string",
      "example": "https://cisco-my.sharepoint.com/personal/naalluri/123",
      "description": "Folder's content URL."
    },
    "creatorId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9mNWIzNjE4Ny1jOGRkLTQ3MjctOGIyZi1mOWM0NDdmMjkwNDY",
      "description": "The person ID of the person who created this folder link."
    },
    "created": {
      "type": "string",
      "example": "2015-10-18T14:26:16.203Z",
      "description": "The date and time when the folder link was created."
    }
  }
}