Pereiti prie pagrindinio turinio

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

bikiran
Originalus plakatas

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.
Vartotojo įkeltas paveikslėlis 1

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

Vartotojo įkeltas paveikslėlis 2

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

Prisijunkite prie pokalbio

Norėdami atsakyti į šį įrašą ir dalyvauti „Geotab“ bendruomenės diskusijose, turite prisijungti.

Populiariausi atsakymai

bikiran
Originalus plakatas

[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.

2 Replies

bikiran
Originalus plakatas

[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.

EishiFUN
Bendruomenės administratorius

@bikiran Thank you for following up when you found the answer. We appreciate this contribution to the communities collective knowledge. Please feel free to reach out if you ever have any other questions.

Vis dar turite klausimų?