To create, edit or delete rounds, use the command route/update_round:
svc=route/update_round¶ms={"itemId":<long>, "id":<long>, "callMode":<text>, "n":<text>, "d":<text>, "u":<long>, "at":<uint>, "vt":<uint>, "vp":<uint>, "sh":<long>, "cu":[<long>], "f":<uint>, "tz":<uint>}
Name | Description |
---|---|
itemId | route ID |
id | round ID |
callMode | action: create, update, delete |
Parameters required only to create and update: | |
sh | schedule ID |
You can find description of other parameters in the chapter Round information. |
On create and edit:
[ <long>, /* round ID */ { "id":<long>, /* round ID */ "n":<text>, /* name */ "d":<text>, /* description */ "sh":<text>, /* schedule name */ "f":<uint>, /* round flags */ "tz":<uint>, /* timezone */ "u":<long>, /* unit attached to this round: if not specified - first unit from the "cu" array, which goes out from the first check point, will be assigned */ "at":<uint>, /* activation time */ "vt":<uint>, /* time from which validity period begins */ "vp":<uint>, /* validity period */ "sts":<uint>, /* round state flags */ "st":{ /* round state */ "st":{ /* general round state */ "pi":<uint>, /* check point index, if 4294967295 - round isn't started */ "ps":<uint>, /* state flags + event flags */ "ut":<uint> /* last event time */ }, "pts":{ /* state by points */ <text>:{ /* check point ID */ "st": <uint>, /* event flags */ "tm": <uint> /* last event time */ }, ... } } } ]
Values of round state and event flags are described in the chapter Round information.
On delete:
[ <long>, /* round ID */ null ]
;
|