list_backups

The list_backups function is used to see all the automatic backup files.

Copied!
svc=item/list_backups&params={"itemId":<long>}

Parameters

Name Description
itemId Item ID.

Returned result

Copied!
{
	"result": [
		{
			"date":"<text>",		/* date */
			"t":<uint>,			/* creation time */
			"unitId":<long>,	/* unit ID */
			"id":<long>,		/* file ID */
			"name":				/* file name */
		},
		...
	]
}

Possible error codes:

Code Description
7 The item doesn’t exist, or the user doesn’t have all the access rights required for the item type:
  • Unit or unit group: Delete object, Manage admin fields, Manage custom fields, Upload and delete files, Change icon, Rename object, Edit not mentioned properties, Create, edit, and delete commands, Edit counters, Edit connectivity settings, Manage events, Edit trip, driving and health check settings, Create, edit, and delete sensors, Create, edit, and delete service intervals;
  • Resource: Delete object, Upload and delete files, Create, edit, and delete drivers, Create, edit, and delete jobs, Create, edit, and delete notifications, Create, edit, and delete report templates, Create, edit, and delete trailers, Create, edit, and delete geofences;
  • User: Delete object, Manage user’s access rights, Act on behalf of this user, Change user’s general properties;
  • Route: Delete object and the right to edit the route properties (ACL bit 0x100000, see Tokens);
  • Retranslator: Delete object, the right to edit the retranslator settings (ACL bit 0x100000, see Tokens), and the right to add or remove units (ACL bit 0x200000, see Tokens);
  • Other item types: Delete object, Rename object, Manage custom fields, Edit not mentioned properties, Edit ACL-propagated objects, Manage admin fields, Upload and delete files, and the ACL bits 0x100000, 0x200000, 0x400000, 0x20000000, 0x800000000, and 0x4000000000.
6 Undefined error.
4 Wrong input parameters.

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