This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:resource:update_tag [01/02/2017 13:39] stan [Parameters] |
en:sidebar:remoteapi:apiref:resource:update_tag [13/04/2020 08:10] (current) chdi [Response] |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>24}} | {{indexmenu_n>24}} | ||
- | ====== Passengers: create, edit, delete ====== | + | ====== Tags (e.g. passengers): create, edit, delete ====== |
- | To create, edit or delete passenger, use the command **resource/update_tag**: | + | To create, edit or delete tag, use the command **resource/update_tag**: |
<code javascript> | <code javascript> | ||
svc=resource/update_tag¶ms={"itemId":<long>, | svc=resource/update_tag¶ms={"itemId":<long>, | ||
Line 21: | Line 21: | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
| itemId | resource ID | | | itemId | resource ID | | ||
- | | id | passenger ID (0 to create) | | + | | id | Tag ID (0 to create) | |
- | | callMode | режим: создание, редактирование, удаление ,удаление изображения (create, update, delete, reset_image) | | + | | callMode | mode: create, update, delete, reset_image | |
| **Parameters required only for create and update:** || | | **Parameters required only for create and update:** || | ||
| c | code | | | c | code | | ||
- | | ck | check sum of passenger image | | + | | ck | check sum of tag image | |
| n | name | | | n | name | | ||
| p | phone number like +1234567890 (+ must be encoded as %2B) | | | p | phone number like +1234567890 (+ must be encoded as %2B) | | ||
Line 35: | Line 35: | ||
<code=javascript> | <code=javascript> | ||
[ | [ | ||
- | <long>, /* passenger ID */ | + | <long>, /* tag ID */ |
{ | { | ||
"id":<long>, /* ID */ | "id":<long>, /* ID */ | ||
Line 44: | Line 44: | ||
... | ... | ||
}, | }, | ||
- | "r":<double>, /* aspect ratio of passenger image */ | + | "r":<double>, /* aspect ratio of tag's image */ |
- | "ck":<ushort>, /* check sum of passenger image */ | + | "ck":<ushort>, /* check sum of tag's image */ |
"f":<ushort>, /* flag, don't used, default value = 1 */ | "f":<ushort>, /* flag, don't used, default value = 1 */ | ||
"bu":<long>, /* bound unit */ | "bu":<long>, /* bound unit */ | ||
"pu":<long>, /* previous bound unit */ | "pu":<long>, /* previous bound unit */ | ||
"bt":<uint>, /* time of last binding/unbinding */ | "bt":<uint>, /* time of last binding/unbinding */ | ||
+ | "tz":<uint>, /* timezone */ | ||
+ | "art":<uint>, /* automatic time unbinding */ | ||
"pos":{ /* position */ | "pos":{ /* position */ | ||
"y":<double>, /* latitude */ | "y":<double>, /* latitude */ | ||
Line 61: | Line 63: | ||
<code javascript> | <code javascript> | ||
[ | [ | ||
- | <long>, /* passenger ID */ | + | <long>, /* tag's ID */ |
null | null | ||
] | ] | ||
</code> | </code> |
|