Contact

A Contact belongs to a client, and is defined by name, e-mail, phone and mobile number.
Contacts are typically used in service events, or in the creation of alarms.

URL Structure is:
https://api.trackunit.com/public/Contact

GetContact

Will list parameters on a specified contact.

Parameters

NameData typeUnit of measurementNote
id *StringN/AUnique identifier.

Columns

NameData typeUnit of measurementNullabilityNote
idStringN/AFALSEUnique identifier.
clientIdStringN/AFALSEUnique identifier of client.
nameStringN/AFALSEName of contact.
emailStringN/ATRUEContact email.
phoneStringN/ATRUEContact phone number.
mobileStringN/ATRUEContact mobile number.

Request (example)

{
   "id": "35718"
 }

Response

{
       "list":[
            {
               "id": "35718",
               "clientId": "38171",
               "name": "Anna Milowich",
               "email": "[email protected]",
               "phone": "472222339901",
               "mobile": "472232336909"
            }
       ]
}
 

CreateContact

Will create a new contact.

Parameters

NameData typeUnit of measurementNote
clientId *StringN/AUnique identifier of client.
name *StringN/AName of contact
emailStringN/AContact email.
phoneStringN/AContact phone number.
mobileStringN/AContact mobile.

Request (example)

{
        "clientId": "38171",
        "name": "Mirko Ziegler",
        "email": "[email protected]",
        "mobile": "475206346911"
}

Response

{
       "id": "35719"
}
 

UpdateContact

Will update parameters on an existing contact.

Parameters

NameData typeUnit of measurementNote
id *StringN/AUnique identifier
clientIdStringN/AUnique identifier of client.
nameStringN/AName of contact.
emailStringN/AContact email.
phoneStringN/AContact phone number
mobileStringN/AContact mobile.

Request (example)

{
        "id": "35718",
        "email": "[email protected]",
        "mobile": "475186346911"
}

Response

{}
 

DeleteContact

Will delete an existing contact.

Parameters

NameData typeUnit of measurementNote
id *StringN/AUnique identifier.

Request (example)

{
       "id": "35717"
}

Response

{}