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

Name Description
resourceId Resource ID.
trailerId Trailer ID.
timeFrom The beginning of the interval.
timeTo The 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:

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

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