SystemX->Frontu (Clients + Objects + Equipments)
8min
clients + objects + equipments client entity which saves all the client information workspace a particular managed facility, place, or equipment if one site contains several facilities, each of them is registered as a separate object for example, you have a client which is “ uab client ”, which has some additional data like company tax/vat id, code/e i n number, address, city, phone number, email, etc for example, workspace has some information too, like workspace name which for example are “ shop ”, address, customer (which means client), serial number and etc for example, equipment has some information too, like equipment name which for example are “ fridge ”, code, equipment, workspace, serial number and etc so as you can see client is “ uab client ” and it has an object where the task can be created, for example in the workspace “ shop ” and object has the equipment “ fridge ” endpoints to use for the clients + objects + equipments first of all, before creating an object you need to create a client so you need to use this endpoint https //developers frontu com/docs/tasker api v2/tasker swagger json/paths/ 1client 1api 1v2 1clients/post in this case fill all needed information like the title client name, address client address and etc in next steps you need to create object https //developers frontu com/docs/tasker api v2/tasker swagger json/paths/ 1client 1api 1v2 1workspaces/post and last step is to create equipment https //developers frontu com/docs/tasker api v2/tasker swagger json/paths/ 1client 1api 1v2 1equipments/post real world data mapping examples of most common cases first of all, you need to create clients for example fill in this data { "title" "uab client", "address" "4759 chandler drive", "city" "joplin", "phone" 865744567, "email" "client\@gmail com", "companyvatcode" "12345678", "companycode" "3546780", "deleted" false, "clienttype" 2, "systemid" "client1" } important the title is a required field then you will get a response { "version" 1622720578, "title" "uab client", "address" "4759 chandler drive", "city" "joplin", "phone" "865744567", "email" “client\@gmail com”, "creditstatus" null, "note" null, "companycode" "3546780", "companyvatcode" "12345678", "guid" "cc38dd65 bcdf cd6c b5b7 9be97e3651fa", "created" "2021 06 03t11 42 58+0000", "updated" "2021 06 03t11 42 58+0000", "deleted" false, "clienttype" 2, "systemid" null, "customvalues" null } in this case, you can take the client systemid or the guid and use it in the workspace workspace creation example { "title" "shop", "client" "client1", "city" "joplin", "systemid" "workspace1", "deleted" false } important title and the client is required fields then you will get a response { "version" 1622721176, "title" "shop", "serialnumber" null, "longitude" null, "latitude" null, "note" null, "address" null, "city" "kaunas", "apartmentnumber" null, "signaturecode" "4d5c63d2db40db14e3f9a7334cf2c83b", "objectcode" "7930df975d543069dc4f74c3a78c316b", "client" { "title" "uab client", "companycode" "3546780", "guid" "cc38dd65 bcdf cd6c b5b7 9be97e3651fa", "systemid" "client1" }, "guid" "aee6c30b 196e 6363 4c25 f2599fe116b9", "created" "2021 06 03t11 52 56+0000", "updated" "2021 06 03t11 52 56+0000", "deleted" false, "systemid" "workspace1", "warrantyindicator" null, "warrantyrequired" false, "customvalues" null } and you can see that you have a relationship with the workspace and client equipment creation example { "title" "fridge", "deleted" false, "workspace" "workspace1", "serialnumber" "312o3u4i", "warrantyexpirationdate" "2021 01 01", "nextmaintenancedate" "2020 11 01" } important you can use the systemid for the workspace or the guid of the frontu then you will get a response { "version" 1623061707, "title" "fridge", "guid" "c383c988 20d3 de56 5b99 fba284bc9bac", "created" "2021 06 07t10 28 27+0000", "updated" "2021 06 07t10 28 27+0000", "deleted" false, "systemid" "equipment1", "workspace" "workspace1", "equipmentmodel" null, "serialnumber" "312o3u4i", "installdate" null, "warrantyexpirationdate" "2021 01 01", "nextmaintenancedate" "2020 11 01", "note" null, "location" null, "customvalues" null } and you can see that you have a relationship with the workspace and equipment