{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-exchange-public-folder-schema.json",
  "title": "email.exchange.publicFolder",
  "description": "Exchange organization public folder",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-exchange-openapi.yml#/components/schemas/email.exchange.publicFolder",
  "type": "object",
  "properties": {
    "anonymousPermission": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.PublicFolderRightTypeEnum"
        }
      ],
      "description": "Access right for the guest users"
    },
    "creationDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "defaultPermission": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.PublicFolderRightTypeEnum"
        }
      ],
      "description": "Default access right"
    },
    "hasSubFolders": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true, this public folder has subfolders",
      "readOnly": true
    },
    "itemCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of items in public folder",
      "readOnly": true
    },
    "lastAccessTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "Time for which public folder was accessed for the last time",
      "format": "date-time",
      "readOnly": true
    },
    "lastModificationTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "Time for which public folder was modified for the last time ",
      "format": "date-time",
      "readOnly": true
    },
    "lastUserAccessTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "Time for which public folder was accessed for the last time by the user",
      "format": "date-time",
      "readOnly": true
    },
    "lastUserModificationTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "Time for which public folder was modified for the last time by the user",
      "format": "date-time",
      "readOnly": true
    },
    "path": {
      "type": "string",
      "description": "Path for public folder",
      "readOnly": true
    },
    "quota": {
      "type": "integer",
      "description": "Quota for public folder in MB"
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.ObjectStateEnum"
        }
      ],
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "task pending id",
      "readOnly": true
    },
    "totalItemSize": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Sum of all items in public folder in MB",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.PublicFolderTypeEnum"
        }
      ],
      "description": "Type for public folder",
      "readOnly": true
    }
  },
  "$defs": {
    "email.exchange.ObjectStateEnum": {
      "type": "string",
      "description": "Current object state",
      "enum": [
        "creating",
        "deleting",
        "internalMigration",
        "ok",
        "reopening",
        "suspended",
        "suspending"
      ]
    },
    "email.exchange.PublicFolderRightTypeEnum": {
      "type": "string",
      "description": "Public folder right type",
      "enum": [
        "editor",
        "none",
        "reviewer"
      ]
    },
    "email.exchange.PublicFolderTypeEnum": {
      "type": "string",
      "description": "Public folder type",
      "enum": [
        "calendar",
        "contacts",
        "plain",
        "tasks"
      ]
    }
  }
}