SystemX -> Frontu (Clients + Objects)

6min

Clients + Objects

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 and etc.

For example, Workspace has some information too, like workspace name which for example are “Shop”, address, customer (which means client), serial number, etc.

So as you can see Client is “UAB Client” and it has a workspace where the task can be created, for example in the workspace “Shop”.

Endpoints to use for the Clients and Objects

First of all, before creating an object you need to create a client. So you need to use this endpoint - https://developers.frontu.com/create-update-client.

In this case fill all needed information like the title - client name, address - client address, etc.

For the next steps you need to create object - https://developers.frontu.com/create-update-workspace

In this case fill all needed information like title, client, which you created before (you need to pass the guid of the client).

Real-world data mapping examples of most common cases

First of all, you need to create Clients using POST method:

JSON


IMPORTANT: the title is a required field.

Then you will get a response:

JSON


In this case, you can take the client guid and use it in the object or you can use systemId, which defines unique data from your system and give it to the workspace.

Workspace creation example:

JSON


IMPORTANT: title and the client is required fields.

Then you will get a response:

JSON


And you can see that you have a relationship with the Workspace and Client by the systemId