get_backup

To get an automatic backup file of an item, use the item/get_backup method.

Copied!
svc=item/get_backup&params={"itemId":<long>,
							"fileId": <uint>}

Parameters

Name Description
itemId Item ID.
fileId File ID.

Returned result

Copied!
{
	"result": {
			"date":"<text>",		/* date */
			"t":<uint>,			/* create time */
			"unitId":<long>,	/* unit ID */
			"id":<long>,		/* file ID */
			"name":"<text>",				/* file name */
			"content":"<text>"			/* backup file contents */
		}
}

Possible error codes:

Code Description
6 Undefined error.
4 Wrong input parameters, or 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.

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