{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-rest-attachment-schema.json",
  "title": "RestAttachment",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-attachments-api-openapi.yml#/components/schemas/RestAttachment",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Attachment ID",
      "format": "int64"
    },
    "owner": {
      "type": "integer",
      "description": "Client ID",
      "format": "int64"
    },
    "name": {
      "type": "string",
      "description": "Attachment name"
    },
    "uploaded": {
      "type": "boolean",
      "description": "If true, the attachment was successfully uploaded"
    },
    "fileName": {
      "type": "string",
      "description": "File name"
    },
    "type": {
      "type": "string",
      "description": "File type of the attachment"
    },
    "mimeType": {
      "type": "string",
      "description": "Mime type of the attachment"
    },
    "size": {
      "type": "integer",
      "description": "Attachment size",
      "format": "int64"
    },
    "created": {
      "type": "string",
      "description": "Date and time of creation",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "description": "Date and time of modification",
      "format": "date-time"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "uriBuilder": {
            "type": "object"
          },
          "rels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rel": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "title": {
            "type": "string"
          },
          "uri": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}