johnnyq
|
294352fd8b
|
Let the API raise a ticket from a ticket template - tickets/create takes ticket_template_id, giving the ticket the template's subject and details when none are sent, its category, priority, billing and agent unless sent, and its tags, due time and tasks (the ones the answers call for), with the template's fill-ins answered from ticket_fill_ins and its placeholders filled in, and a missing or archived template, fill-ins that aren't an object, a required fill-in left out or a choice not on a list refused with 400 and the reason; ticket_notify sends the contact and watchers the Ticket Created email when Email clients about their tickets is on, tells the new-ticket address and notifies the assigned agent in the app and by email; the answer now includes ticket_reference, ticket_url (the contact's link to the ticket) and, from a template, ticket_tasks; canned responses now fill in a ticket's template fill-in answers such as [Hostname] alongside [Contact] and [Ticket], never over a built-in placeholder of the same name, and the canned response form says so; contacts/create and locations/create no longer write a PHP warning for each field left out; the new-ticket agent email reads raised through the API; changelog updated
|
2026-11-05 17:39:22 -05:00 |
|
johnnyq
|
01fbcda75d
|
Security sweep 2: API archive, unarchive, resolve and close now check the client named in the call the same as create, update and delete do (every call except read.php and time.php counts as a write); API asset, contact, network and document create/update keep linked contacts, locations, vendors, networks and folders within the record's own client; linking a contact to an asset refuses another client's contact, and unlinking only clears the contact it was linked to; agents limited to certain clients no longer see other clients' names in the asset import template file name, export filter summaries, or the messages from file moves, unlinks, ticket asset removal, bulk project add and bulk interface network; guest quote Accept and Decline post instead of being plain links and check the key with hash_equals; exports that match nothing say so instead of showing a blank page; about 30 handlers now stop with 'no longer exists' when their record was just deleted, instead of showing warnings or an error page and writing history for a record that is gone; restore_contact_note reads its own id parameter; ticket prefix pattern escaped for the v flag; missing user agent and array key parameters handled; CHANGELOG updated
|
2026-10-26 19:54:36 -04:00 |
|
johnnyq
|
b57ddc0e5c
|
Replace Function sanitizeInput() with just escapeSql() and update all instances throughout
|
2026-07-14 17:17:50 -04:00 |
|
wrongecho
|
4617f44cda
|
- Prevent error 500s when existing data can't be cleanly re-inserted to database
|
2026-04-04 11:01:34 +01:00 |
|
wrongecho
|
873dc1f76d
|
Fix contact location if not provided in api call
|
2025-07-01 11:50:20 +01:00 |
|
johnnyq
|
1df98166bd
|
Fix issue with Contacts API - Removed contact_auth from Contacts call to the API
|
2024-10-30 19:35:26 -04:00 |
|
johnnyq
|
3e7f57f64a
|
Add contact primary to the API edit ^Cd create
|
2024-05-10 14:27:04 -04:00 |
|
johnnyq
|
cdfb61b294
|
Added a helper if no tags exist when attempting to add them to a client, Added some santizeInput tags to API
|
2023-02-28 11:58:08 -05:00 |
|
Marcus Hill
|
f3456ead67
|
API
- Add PHP logging when API queries fail because of SQL errors
- Add user agent to logging
- Enhance asset update endpoint
|
2023-02-05 15:07:41 +00:00 |
|
Marcus Hill
|
5d269368f6
|
Update contact API to support contact_import, contact_billing, contact_technical
|
2023-01-26 13:34:13 +00:00 |
|
Marcus Hill
|
ff741c223e
|
API code style tidy
|
2023-01-01 16:00:07 +00:00 |
|
Marcus Hill
|
b23359ff38
|
Adjust contact API to allow department to be text rather than int due to db schema change
|
2022-09-11 11:08:48 +01:00 |
|
Marcus Hill
|
467784cb2a
|
Define the number regex as a constant and use that instead
|
2022-04-17 23:30:10 +01:00 |
|
Marcus Hill
|
e55622827d
|
Add support for client-specific API keys
Refactoring API. Added a contact update endpoint.
Small misc changes.
|
2022-04-15 17:43:06 +01:00 |
|