update_trailers_group

To create, edit, or delete trailer groups, use the resource/update_trailers_group method.

Endpoint

Copied!
svc=resource/update_trailers_group&params={
    "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:

Copied!
[
    <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:

Copied!
[
    <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.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also