Skip to main content

MyGeotab API: Add zoneType instead of zone while adding new custom Rule

bikiran
Original Poster

While adding a new custom rule through the MyGeotab dashboard, we have the option to add "Zone" or "Zone Type" associated with the new rule.
User uploaded image 1

However, using the MyGeotab API, it seems only adding a "zone" while defining the "condition" of the rule is supported.

User uploaded image 2

How to add "zoneType" instead of "zone" in the "condition" of a new custom rule through MyGeotab API?

Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Top Answers

bikiran
Original Poster

[SOLVED]
Replacing the "zone" object with a "zoneType" object in the API call, does the job.
Perhaps the API documentation missed mentioning the "zoneType" parameter for the "condition" object.

1 Reply

bikiran
Original Poster

[SOLVED]
Replacing the "zone" object with a "zoneType" object in the API call, does the job.
Perhaps the API documentation missed mentioning the "zoneType" parameter for the "condition" object.

Still have questions?