{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-rest-personalized-attachment-upload-schema.json", "title": "RestPersonalizedAttachmentUpload", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/optimizely-attachments-api-openapi.yml#/components/schemas/RestPersonalizedAttachmentUpload", "type": "object", "properties": { "uploadedFiles": { "type": "array", "description": "List of uploaded attachments", "items": { "$ref": "#/$defs/RestPersonalizedAttachment" } }, "token": { "type": "string", "description": "Personalized attachment token for all files uploaded - can be used when sending transactional mailings" } }, "$defs": { "RestPersonalizedAttachment": { "type": "object", "properties": { "fileName": { "type": "string", "description": "File name" }, "fileSize": { "type": "integer", "description": "File size in bytes", "format": "int64" }, "id": { "type": "integer", "description": "Attachment ID", "format": "int64" }, "contentType": { "type": "string", "description": "File content type" }, "expiresAt": { "type": "string", "description": "Expiry date", "format": "date-time" }, "created": { "type": "string", "description": "Creation date", "format": "date-time" } }, "description": "List of uploaded attachments" } } }