To create, edit or delete trailer groups, use the command resource/update_trailers_group:
svc=resource/update_trailers_group¶ms={"itemId":<long>, "id":<long>, "callMode":<text>, "n":<text>, "d":<text>, "drs":[<uint>], "f":<uint>}
Parameters
Name | Description |
---|---|
itemId | resource ID |
id | trailer group ID |
callMode | action: create, update, delete |
Parameters required only for create and update: | |
n | name |
d | description |
drs | array of trailers IDs |
f | flags: not used at the moment |
Response
On create and edit:
[ <long>, /* group ID */ { "id":<long>, /* group ID */ "n":<text>, /* name */ "d":<text>, /* description */ "drs":[<uint>] /* array of trailers IDs */ } ]
On delete:
[ <long>, /* group ID */ null ]