{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-file-response-schema.json",
  "title": "FileResponse",
  "description": "Single file resource response.",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-bkb-v2-openapi.json#/components/schemas/FileResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "fileId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unique file GUID.",
      "format": "guid"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filename with extension."
    },
    "folderId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Parent folder ID.",
      "format": "int32"
    },
    "entityId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Owner entity ID.",
      "format": "int32"
    },
    "entityType": {
      "type": [
        "string",
        "null"
      ],
      "description": "Account, Carrier, or General."
    },
    "accessLevel": {
      "type": [
        "string",
        "null"
      ],
      "description": "Team visibility restriction."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "Active or Archived."
    },
    "contentType": {
      "type": [
        "string",
        "null"
      ],
      "description": "MIME type string."
    },
    "sizeBytes": {
      "type": [
        "integer",
        "null"
      ],
      "description": "File size bytes.",
      "format": "int64"
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "UTC creation timestamp.",
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "UTC update timestamp.",
      "format": "date-time"
    }
  }
}