{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/servicenow/main/json-schema/servicenow-attachment-schema.json", "title": "Attachment", "description": "Metadata about a file attachment stored in ServiceNow.", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/servicenow-attachments-api-openapi.yml#/components/schemas/Attachment", "type": "object", "properties": { "sys_id": { "type": "string", "description": "Unique identifier for the attachment record." }, "file_name": { "type": "string", "description": "The name of the attached file." }, "table_name": { "type": "string", "description": "The table to which the attachment belongs." }, "table_sys_id": { "type": "string", "description": "The sys_id of the record to which the file is attached." }, "content_type": { "type": "string", "description": "The MIME type of the attached file." }, "size_bytes": { "type": "integer", "description": "The size of the attached file in bytes." }, "size_compressed": { "type": "integer", "description": "The compressed size of the attached file in bytes." }, "download_link": { "type": "string", "format": "uri", "description": "The URL to download the attachment file content." }, "image_height": { "type": "integer", "description": "The height in pixels if the attachment is an image." }, "image_width": { "type": "integer", "description": "The width in pixels if the attachment is an image." }, "hash": { "type": "string", "description": "The MD5 hash of the file content." }, "state": { "type": "string", "description": "The state of the attachment processing." }, "sys_created_on": { "type": "string", "format": "date-time", "description": "The date and time the attachment was created." }, "sys_created_by": { "type": "string", "description": "The user who uploaded the attachment." }, "sys_updated_on": { "type": "string", "format": "date-time", "description": "The date and time the attachment was last modified." }, "sys_updated_by": { "type": "string", "description": "The user who last modified the attachment record." } } }