Using Tags
Tags in the Navixy system are labels that facilitate quick and convenient searches for places, geofences, employees, tasks, trackers, and vehicles. You can create custom tags according to your needs, and each object can have multiple tags assigned.
Case
To streamline searching for objects, assign specific tags to related items. For example, if a team of employees services several places and uses specific vehicles, you can assign a unique tag to these objects. This way, you can easily find tasks assigned to these teams.
Creation
First, create the tag using the tag/create method. Let's name it "team1."
API request:
curl -X POST 'https://api.eu.navixy.com/v2/tag/create' \
-H 'Content-Type: application/json' \
-d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "tag": {"name": "team1", "color": "#00BFFF"}}'https://api.eu.navixy.com/v2/tag/create?hash=a6aa75587e5c59c32d347da438505fc3&tag={"name": "team1", "color": "#00BFFF"}The platform will reply with the created tag ID. You can find this tag using the tag/list method.
Assigning
Next, assign this tag to your objects. You can do this when updating or creating objects by adding the "tags" parameter:
Tracker - Use the
tags/setmethod
Searching Objects with Tags
To find all objects with a specific tag, use the tag/search method.
API request:
The platform will respond with objects that have the assigned tag:
Last updated
Was this helpful?