BIG Edit: OK, SO. This tutorial saved us (thanks waybackmachine ❤️) but it yet again seems like every device needs its own Key derived from its own IP?
~ ~ ~ Original Issue / Post :
I've been struggling to make this work but I must be missing something integral because it just won't.
My current setup:
- osTicket 1.16.3, PHP 8.0.21, Apachi 2.4.52, on an Ubuntu 22.0.4.1 VM.
the VM has a static IP and I'm accessing via that instead of via URL, due to my shitty ISP Modem/Router being shitty fixed that, so now I can access my osTicket Server via both URL and IP. didn't fix the issue.
- I can access the Web GUI, including the /scp admin page, from any PC in my Network
- I can open and check tickets via the GUI perfectly fine
- I'm using Postman as a testing ground to get POST (and hopefully GET?) commands working
With that said, I've generated an API Key but I'm kinda fumbling with it. Which IP should I put in the IP field? Is there a reason to tick, or not tick, both "Can Create" Tickets and Cron?
Update: It seems to want each Client to have their own Key corresponding to their unique IP? But that's a lot of work for an automated System, plus like it would barely work with DHCP.
I've edited the /osTicket/scripts/api_ticket_create.php file to have the osTicket Server's Static IP as its "domain" (http://xxx.xxx.xxx.xxx/api/tickets.json) and put my generated key in the respective field, though I'm not sure if it should be 'key' => 'GENERATEDKEY' or 'key' => '<GENERATEDKEY>'. I've tried both ways to type it, didn't help.
In Postman I'm using POST http://xxx.xxx.xxx/api/tickets.json_, with Authorization: API Key (correctly placed as Header), Key: X-API-Key and Value: GENERATEDKEY. I've tried giving it the ticket values in the Params fields, or as raw .json code in the Body-raw field, or even not giving any at all.
Regardless of all, I keep getting a 404 of all things. Not Found. The requested URL was not found on this server
help