# Assigning Logical ID

Navigation: Working with Nx Witness > Device Management (Cameras, Encoders and I/O Modules) > Setting Up Cameras and Devices > Working With Expert Device Settings > # Assigning Logical ID |

The Nx Witness server API provides a mapping that lets you assign a 1 to 3 digit Logical ID that can be used instead of the much longer Camera Id displayed in Camera Settings -> Advanced.

The Logical ID simplifies device identification when integrating with third-party systems, and is necessary in environments with input devices that are not capable of entering the full camera ID. The Logical ID can be used in API calls (including getting RTSP streams etc) to address cameras.

To assign a Logical ID

1.Open the context menu for a camera and go to Camera Settings -> Expert.

2.Enter a number in the Logical Id field.

If you are integrating with a system that is already using 1 to 3 digit identifiers, use the Generate button to discover and display the smallest number that is not already in use.

To remove a Logical ID

Press the Reset button. This sets the Logical ID to zero, which the API equates to having no Logical ID.