Inventory Device Serial Operation
The Inventory Device Serial Operation
APIendpointsprovidesenablefunctionality to update device information using serial numbers as identifiers. This endpoint is designed for bulkremote device managementoperationsbywhereallowing youneedto perform critical operations on devices identified by their serial numbers. This API provides a streamlined way tomodifyexecute common deviceattributesmaintenanceortaskssettingssuchdirectlyasbyreboots,serialfactorynumber,resets,makingconfigurationit ideal for inventory management systemssynchronization, anddevicereconfigurationprovisioningwithoutworkflows.physical access to the devices.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Device Serial Operation API category contains endpoints specifically designed forprovides device management operationscapabilities thatfor targetremotely controlling devices byin theiryour uniqueinventory serial numbers.system. This approachAPI is particularlyessential usefulfor whenIT integratingadministrators, withdevice externalmanagers, and automated systems that primarilyneed identifyto perform maintenance operations on deployed devices byacross different locations.
Key Features:
Common Scenarios:
This API category is commonlyparticularly usedvaluable infor scenariosorganizations where:
The serial number-based approach eliminates the need to first query for device IDs, streamlining operations where serial numbers are the primary identifier. This is especially valuable in enterprise environments where serial numbers are used for device tracking and management.costly.
Endpoints
PUT /inventory_device_serial_operation/{serial_number}/
Description: Updates device information and configuration forExecutes a specificspecified operation on a device identified by its serial number. This endpoint allowssupports you to modifyvarious device attributes,management status,operations including reboots, factory resets, configuration settings,synchronization, and otherreconfiguration. propertiesThe withoutoperation needingis toexecuted knowimmediately theupon internalsuccessful devicerequest ID. It's designed for bulk operations and integration with external systems that use serial numbers as primary identifiers.processing.
Use Cases:
UpdatingRemotely restart a devicestatusthatduringhasdeploymentbecome unresponsive ordecommissioningisprocessesexperiencing connectivity issuesModifyingPerform factory reset on devices being reassigned to different users or locations
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_serial_operation/ABC123456789/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| serial_number | string | path | Yes | The unique serial number of the device to |
| data | string | body | Yes | JSON |
Request Body Schema:
reboot, factory, device_factory, sync, reconf
Operation Types:
reboot - Restart the device
factory - Perform complete factory reset (all settings and data)
device_factory - Perform device factory reset (preserves some core settings)
sync - Synchronize device configuration with management server
reconf - Trigger device reconfiguration process
cURL Example:
curl -X PUT "https://control.zequenze.com/api/v1/inventory_device_serial_operation/ABC123456789/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name"operation": "Conference Room Laptop",
"status": "active",
"location": "Building A - Room 101",
"assigned_user": "john.doe@company.com",
"organization_unit": "IT Department",
"configuration": {
"auto_update": true,
"backup_enabled": true,
"encryption_status": "enabled"
},
"tags": ["laptop", "conference-room", "windows"]reboot"
}'
Example Request Body:
{
"name"operation": "Conference Room Laptop",
"status": "active",
"location": "Building A - Room 101",
"assigned_user": "john.doe@company.com",
"organization_unit": "IT Department",
"device_type": "laptop",
"manufacturer": "Dell",
"model": "Latitude 5520",
"configuration": {
"auto_update": true,
"backup_enabled": true,
"encryption_status": "enabled",
"compliance_profile": "corporate-standard"
},
"custom_fields": {
"purchase_date": "2024-01-15",
"warranty_expiry": "2027-01-15",
"cost_center": "IT-001"
},
"tags": ["laptop", "conference-room", "windows"]reboot"
}
Example Response:
{
"id": 1247,12345,
"serial_number"operation": "ABC123456789",
"name": "Conference Room Laptop",
"status": "active",
"location": "Building A - Room 101",
"assigned_user": "john.doe@company.com",
"organization_unit": "IT Department",
"device_type": "laptop",
"manufacturer": "Dell",
"model": "Latitude 5520",
"configuration": {
"auto_update": true,
"backup_enabled": true,
"encryption_status": "enabled",
"compliance_profile": "corporate-standard"
},
"custom_fields": {
"purchase_date": "2024-01-15",
"warranty_expiry": "2027-01-15",
"cost_center": "IT-001"
},
"tags": ["laptop", "conference-room", "windows"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-03-15T14:22:33Z",
"last_seen": "2024-03-15T14:20:15Z"reboot"
}
Response Fields:
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - |
| 400 | Bad Request - Invalid |
| 401 | Unauthorized - Invalid or missing |
| 404 | Not Found - Device with |
| 422 | Unprocessable Entity - Valid |
| 500 | Internal Server Error - |
Common Use Cases
Use Case 1: Remote Device Deployment AutomationTroubleshooting
When deployingdevices devicesbecome unresponsive or experience connectivity issues, use the reboot operation to endrestart users,them update device status, assigned user, and location information using the device's serial number.remotely. This is typicallyparticularly integrateduseful intofor devicedevices provisioningdeployed workflowsin remote locations where thephysical serial numberaccess is scanneddifficult or enteredcostly.
Endpoints: thePUT deployment/inventory_device_serial_operation/{serial_number}/ process.with operation: "reboot"
Use Case 2: AssetDevice ManagementReassignment Integrationand Redeployment
SyncBefore devicereassigning informationdevices fromto externalnew assetusers managementor systemslocations, thatperform usea serialfactory numbersreset asto primaryensure identifiers.all Updateprevious deviceuser location, cost center, warranty information,data and otherconfigurations asset-relatedare propertiesremoved. withoutThis needingmaintains tosecurity mapand toprovides internala IDs.clean slate for new deployments.
Endpoints: PUT /inventory_device_serial_operation/{serial_number}/ with operation: "factory"
Use Case 3: Bulk Configuration UpdatesManagement Workflows
ApplyAfter updating device policies, security settings, or network configurations in your management system, trigger configuration changessynchronization to multipleensure all devices byreceive serialthe numberlatest duringsettings compliancewithout updatesmanual orintervention.
Endpoints: policyPUT changes./inventory_device_serial_operation/{serial_number}/ Thiswith allowsoperation: for batch processing where each device is identified by its unique serial number."sync"
Use Case 4: InventoryAutomated ReconciliationMaintenance Schedules
UpdateIntegrate device informationoperations into automated maintenance workflows that can perform regular reboots during physicaloff-hours, inventorysync auditsconfigurations whereafter policy updates, or prepare devices arefor identifiedredeployment byas theirpart serialof numbers.lifecycle Correctmanagement locationprocesses.
Endpoints: updatePUT status,/inventory_device_serial_operation/{serial_number}/ andwith modifyvarious other attributesoperations based on physicalmaintenance verification.requirements
Use Case 5: DeviceEmergency LifecycleResponse Managementand Recovery
UpdateIn emergency situations where devices need immediate reconfiguration (such as security incidents or network changes), use the reconfiguration operation to quickly update device statussettings andwithout configurationwaiting duringfor differentstandard lifecyclesynchronization phasescycles.
Endpoints: activePUT use,/inventory_device_serial_operation/{serial_number}/ maintenance,with decommissioning)operation: using the serial number as the consistent identifier throughout the device's lifecycle."reconf"
Best Practices
Operation Selection:
- Use
rebootfor routine troubleshooting and after configuration changes that require a restart
factory for complete device reset when reassigning or decommissioning devices
Select device_factory when you need to reset user settings but preserve core device firmware and basic configurations
Implement sync operations after any policy or configuration updates in your management system
Use reconf for immediate configuration changes that cannot wait for scheduled synchronization
ValidateError SerialHandling:
- Always
ensurecheck the response status code before proceeding with additional operations
Security Considerations:
Use Partial Updates: Only include fields that need to be updated in the request body. The API supports partial updates, so you don't need to send the entire device object.
Batch Operations: When updating multiple devices, implement proper rate limiting and consider processing devices in batches to avoid overwhelming the API.
Error Handling: Implement robust error handling for common scenarios like device not found (404) or invalid data (400/422). Log failed operations for troubleshooting and retry mechanisms.
Data Validation: Validate device data on the client side before sending requests, especially for fields like email addresses, dates, and enumerated values like status.
Idempotent Operations: Design your integration to be idempotent - the same update operation should be safe to retry without causing unintended side effects.
Audit Trail: Keep track of what changes are being made for compliance and troubleshooting purposes, as this endpoint modifies device records directly.
Security: Never log or expose API tokens in your application code or logs. Use secure credentialtoken storage and rotation practices.
Performance and Reliability:
Integration Tips: