Hello. I am using Osticket-develop branch and I want to create tickets via API. I send

{'email': 'api@osticket.com', 'source': 'API', 'attachments': , 'alert': True, 'subject': 'Testing API', 'name': 'Angry User', 'ip': '127.0.0.1', 'phone': '3185558634X123', 'auto respond': True, 'message': 'MESSAGE HERE'}

to /api/http.php/tickets.json. But I got error

b'<br />\n<b>Catchable fatal error</b>: Object of class AttachmentFile could not be converted to string in <b>\\include\\class.orm.php</b> on line <b>1638</b><br />\n'

and 200 http code.

Ticket is created, but here is comment : Unable to save file rather than attached files. What am i doing wrong? Thanks

I'm not real sure that we provide support for un-released versions here.  I would think that you would want to post on Github about that.That being said Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.please provide: the PHP error from your error logs.version of PHPflavor and version of OS and Webserver

Write a Reply...