update_trailers_group
To create, edit, or delete trailer groups, use the resource/update_trailers_group method.
Endpoint
svc=resource/update_trailers_group¶ms={
"itemId": <long>,
"id": <long>,
"callMode": <text>,
"n": <text>,
"d": <text>,
"drs": [<uint>]
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Resource ID. |
id | Trailer group ID. |
callMode | Action type: create, update, delete. |
n | Trailer group name. Required only for the create and update action type. |
d ** | Trailer group description. Required only for the create and update action type. |
drs | Array of trailer IDs. Required only for the create and update action type. |
Response
If the request for creating or editing the trailer group is completed successfully, the response is returned in the following format:
[
<long>, // Trailer group ID.
{
"id": <long>, // Trailer group ID.
"n": <text>, // Trailer group name.
"d": <text>, // Trailer group description.
"drs": [<uint>] // Array of trailer IDs.
}
]
If the request for deleting the trailer group is completed successfully, the response is returned in the following format:
[
<long>, // Trailer group ID.
null
]
If the request fails, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
6 | Unknown error. |
7 | Missing ADF_ACL_AVL_RES_EDIT_TRAILERS access right to the resourse. |