cleanup_trailer_interval

The cleanup_trailer_interval function is used to delete the records about assigning a trailer to a unit or separating it from a unit during a specified time interval.

Copied!
svc=resource/cleanup_trailer_interval&params={"resourceId":<long>,
					      					  "trailerId":<long>,
					      					  "timeFrom":<uint>,
				 	      					  "timeTo":<uint>
											 }

Parameters

NameDescription
resourceIdResource ID.
trailerIdTrailer ID.
timeFromThe beginning of the interval.
timeToThe end of the interval.

Returned result

If the request is successful, an empty JSON is returned.

Copied!
{ }

If not, an error code is returned. Possible error codes:

CodeDescription
7Failed to fetch the resource with the desired ACL (ACL_RES_EDIT_TRAILERS and ACL_ITEM_EXECUTE_REPORTS).
4Failed to fetch the trailer with the desired trailerId or wrong input parameters.
3

Failed to fetch messages.

Download PDF file
Download Word document

See also