Wiki
Clone wikiNumera.LibrisAPI / device.replace
Home > API Reference Documentation > device.replace
device.replace
The device.replace
action (also known as a "swap") is used to swap the active device for a patient with a new device, commonly used during device replacements. It requires Agent Supervisor or higher permissions to invoke.
Input Parameters
Property | Required | Description |
---|---|---|
old_imei | yes | The imei of their current device |
new_imei | yes | The imei of their new device |
Output
The result object will be empty.
Possible Status Codes
Status Code | Reason | Description |
---|---|---|
1001 | DEVICE_DOES_NOT_EXIST | Could not locate the device or the user does not have access to it |
1002 | OLD_DEVICE_NOT_ACTIVE | The old device must be their current active device |
1003 | OLD_DEVICE_NO_EVENT_COLLECTOR | The old device must have an event collector |
1004 | NEW_DEVICE_NOT_UNMANAGED | The new device must be new and not in any other status |
1005 | NEW_DEVICE_HAS_EVENT_COLLECTOR | The new device already has an event collector |
1006 | DEVICES_ARE_IN_DIFFERENT_REALMS | The devices must be in the same realm |
Updated