I am currently evaluating version 1.8.1 and have come up against some issues when trying to use the API. Our Server currently runs CentOS 6.5 and Apache 2.2. The code i am using is based on the following articlehttp://www.andrewbennett.com.au/2013/06/creating-a-ticket-via-the-osticket-api-using-php-cron/I am getting an error stating "The requested URL /support/api/tickets.json was not found on this server."Does anyone have any suggestions?

CentOS... are you running SeLinux?  If so try disabling it and see if it fixes your problem.  If it does then you will or course have to write rules for it.

Also I would take a look at:'url'=>'http://yourdomain.com/support/api/tickets.json',Chances are if you are like most people you don't have osTicket in yourdomain.com/support

SELinux is disabled on CentOS and there should not be an issue with the first part of the URL

It sounds like you have a problem with your .htaccess then. I've been playing with the API to make tickets and do not have this problem. (I am also not running Apache however).

fixed this in the end by using the following urlusing the following at the end of the url "/api/http.php/tickets.json" instead of "/api/tickets.json"

Thanks @bhaslewood that worked for me too, same problem here.

Write a Reply...