{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zoho/main/json-schema/zoho-face-book-thread-response-schema.json",
  "title": "faceBookThreadResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zoho-thread-api-openapi.yml#/components/schemas/faceBookThreadResponse",
  "type": [
    "null",
    "object"
  ],
  "additionalProperties": false,
  "properties": {
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 100,
      "minLength": 0,
      "pattern": "(^([a-zA-Z0-9\\s\\.\\?\\_\\-\\,])*$|null|undefined)"
    },
    "isDescriptionThread": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "attachments": {
      "$ref": "./Thread.json#/components/schemas/attachments"
    },
    "isContentTruncated": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "canReply": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "visibility": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "public",
        "private"
      ],
      "maxLength": 100,
      "minLength": 0
    },
    "author": {
      "$ref": "./Thread.json#/components/schemas/author"
    },
    "fullContentURL": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 100,
      "minLength": 0,
      "pattern": "(^(ht|f)tp(s?)\\://[-.\\w]*(/?)([a-zA-Z0-9\\-\\.\\?\\,\\:\\'/\\\\+=&amp;%\\$#_@]*)?$)"
    },
    "channel": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "FACEBOOK"
      ],
      "maxLength": 100,
      "minLength": 0
    },
    "source": {
      "$ref": "./Thread.json#/components/schemas/channelSource"
    },
    "content": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 16000000,
      "minLength": 0
    },
    "facebookProfile": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 13000,
      "minLength": 0,
      "pattern": "(^([a-zA-Z0-9\\s\\.\\?\\_\\-\\,])*$|null|undefined)"
    },
    "hasAttach": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "responderId": {
      "type": [
        "string",
        "null",
        "integer"
      ],
      "format": "int64",
      "pattern": "([0-9]+)"
    },
    "channelRelatedInfo": {
      "$ref": "./Thread.json#/components/schemas/channelRelatedInfo"
    },
    "createdTime": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 100,
      "minLength": 0,
      "pattern": "(((19|20)\\d\\d)[-/.]{1}(0?[1-9]|1[012])[-/.]{1}(0?[1-9]|[12][0-9]|3[01])(T)([01]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]([/.][\\d]{0,3})?(Z))"
    },
    "attachmentCount": {
      "type": [
        "string",
        "null",
        "integer"
      ],
      "format": "int64",
      "pattern": "([0-9]+)"
    },
    "readReceipts": {
      "$ref": "./Thread.json#/components/schemas/readReceipts"
    },
    "id": {
      "type": [
        "string",
        "null",
        "integer"
      ],
      "format": "int64",
      "pattern": "([0-9]+)"
    },
    "actions": {
      "$ref": "./Thread.json#/components/schemas/actionsList"
    },
    "contentType": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "text/plain",
        "text/html"
      ],
      "maxLength": 100,
      "minLength": 0
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "SUCCESS",
        "PENDING",
        "FAILED",
        "DRAFT"
      ],
      "maxLength": 100,
      "minLength": 0
    },
    "direction": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "in",
        "out"
      ],
      "maxLength": 100,
      "minLength": 0
    }
  },
  "required": [
    "actions",
    "attachmentCount",
    "attachments",
    "author",
    "canReply",
    "channel",
    "channelRelatedInfo",
    "content",
    "contentType",
    "createdTime",
    "direction",
    "facebookProfile",
    "fullContentURL",
    "hasAttach",
    "id",
    "isContentTruncated",
    "isDescriptionThread",
    "readReceipts",
    "responderId",
    "source",
    "status",
    "summary",
    "visibility"
  ]
}