From 87faebd90d5eb551a1ccf2dc56995200d93810a7 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Fri, 7 Jan 2022 15:51:22 +0000 Subject: [PATCH] Add functionality to for adding new assets via API --- README.md | 4 +++- api.php | 21 ++++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ac95f94a..d9601126 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,9 @@ * XML Phonebook Download - /api.php?api_key=[API_KEY]&phonebook * Client Email (great for mailing lists) - /api.php?api_key=[API_KEY]&client_emails - Returns Client Name - Email Address * Account Balance for Client (can be integrated into multiple places for example in FreePBX Press 3 to check account balance, please enter your client ID your balance is) - /api.php?api_key=[API_KEY]&client_id=[CLIENT_ID] - Returns Account Balance -NOTE: [API_KEY] - is auto generated when a company is created and shows up in General Settings, this can also be changed manually. +* Add new asset for a client - /api.php?api_key=[API_KEY]&add_asset=Name&type=[Desktop|Laptop|Server]&make=Make&model=Model&serial=Serial&os=OS + * Required: api_key, add_asset (name) +* NOTE: [API_KEY] - is auto generated when a company is created and shows up in General Settings, this can also be changed manually. ### Future Todo * MeshCentral / TacticalRMM (Export Assets Info to ITFlow, Exports common software applications to Software) diff --git a/api.php b/api.php index d34928f1..37de01d9 100644 --- a/api.php +++ b/api.php @@ -1,8 +1,6 @@