To create, edit or delete tag, use the command resource/update_tag:
svc=resource/update_tag¶ms={"itemId":<long>, "id":<long>, "callMode":<text>, "c":<text>, "ck":<short>, "n":<text>, "p":<text>, "r":<double>, "tz":<int>, "jp":{ <text>:<text>, ... }}
Name | Description |
---|---|
itemId | resource ID |
id | Tag ID (0 to create) |
callMode | mode: create, update, delete, reset_image |
Parameters required only for create and update: | |
c | code |
ck | check sum of tag image |
n | name |
p | phone number like +1234567890 (+ must be encoded as %2B) |
tz | time zone |
jp | custom fields in the format “name”:“value” |
On create and edit:
[ <long>, /* tag ID */ { "id":<long>, /* ID */ "n":<text>, /* name */ "c":<text>, /* code */ "jp": { /* custom fields */ <text>:<text>, /* "name":"value" */ ... }, "r":<double>, /* aspect ratio of tag's image */ "ck":<ushort>, /* check sum of tag's image */ "f":<ushort>, /* flag, don't used, default value = 1 */ "bu":<long>, /* bound unit */ "pu":<long>, /* previous bound unit */ "bt":<uint>, /* time of last binding/unbinding */ "pos":{ /* position */ "y":<double>, /* latitude */ "x":<double> /* longitude */ } } ]
On delete:
[ <long>, /* tag's ID */ null ]
|