What is the correct format for the 'attachments' field when creating tickets via the osTicket API?
Attachments must be provided as an array of objects where each object has a single key (the filename) and the value is a data URI string. Do not use separate name/type/data fields. Example: [{"file.txt": "data:text/plain;charset=utf-8,Hello World"}, {"image.png": "data:image/png;base64,"}]. Full documentation: https://docs.osticket.com/en/latest/DeveloperDocumentation/API/Tickets.html
Originally sourced from forum.osticket.com . osFAQ.org summarises community knowledge for quick reference.
Helpful
Report an error