# Update device details such as device name, asset tag, etc. modifies particular device details ## Endpoint `PUT /api/v1/mdm/devices/{device_id}` ## Request URL `https://{server-hostname}:8383/api/v1/mdm/devices/{device_id}` ## Scope `MDMDeviceMgmt.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** (`string`, Mandatory): `application/json` - **Accept** (`string`, Mandatory): `application/json` ### Path Parameters - **device_id** (`string`, Mandatory): Unique identifier of the device. Obtain from the [Get Device List](https://www.manageengine.com/products/desktop-central/help/api/onpremise/devices-get-device-list.html) response. ### Request Body `application/json` - **name** (`string`, Optional): Name of the device - **device_name** (`string`, Optional): Display name of the device - **description** (`string`, Optional): Description of the device - **asset_tag** (`string`, Optional): Asset tag information for the device - **asset_owner** (`string`, Optional): Owner of the device asset - **office** (`string`, Optional): Office location assigned to the device - **branch** (`string`, Optional): Branch location of the device - **location** (`string`, Optional): Physical location of the device - **area_manager** (`string`, Optional): Area manager responsible for the device - **purchase_date** (`string`, Optional): Purchase date in milliseconds since epoch - **purchase_order_number** (`string`, Optional): Purchase order number for the device - **purchase_price** (`string`, Optional): Purchase price of the device - **purchase_type** (`string`, Optional): Purchase type of the device (e.g., Reseller, Vendor) - **warranty_expiration_date** (`string`, Optional): Warranty expiration date in milliseconds since epoch - **warranty_number** (`string`, Optional): Warranty number of the device - **warranty_type** (`string`, Optional): Warranty type (e.g., WithService, WithoutService) - **apn_username** (`string`, Optional): APN username for the device - **apn_password** (`string`, Optional): APN password for the device - **assigned_fences** (`JSON Array`, Optional) - **registered_time** (`string`, Optional): Device registration time in milliseconds since epoch - **enrollment_request_time** (`string`, Optional): Enrollment request time in milliseconds since epoch ## Sample Request ```bash curl --request PUT \ --url https://appdomain/api/v1/mdm/devices/{device_id} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"purchase_type":"Reseller","warranty_number":"SJSU64728372","apn_password":"zylker@123","asset_tag":"ZY-IPAD-0012","description":"Belong to Zylker Inc - Sales Team","enrollment_request_time":1527984500000,"office":"North Plaza,CA","warranty_type":"WithService","branch":"North America - Plaza","apn_username":"zylker","device_name":"Zylker-Sales-iPad-12","warranty_expiration_date":1530057600000,"registered_time":1527984000000,"name":"Zylker-Sales-iPad-12","purchase_price":"65000","asset_owner":"John Smith","purchase_order_number":"SR2Ik56779","location":"Building 3, Floor 2","area_manager":"Mary Doe","purchase_date":1527984000000}' ``` ## Sample Request Body Update editable device attributes such as asset/warranty/owner information. ```json { "purchase_type": "Reseller", "warranty_number": "SJSU64728372", "apn_password": "zylker@123", "asset_tag": "ZY-IPAD-0012", "description": "Belong to Zylker Inc - Sales Team", "enrollment_request_time": 1527984500000, "office": "North Plaza,CA", "warranty_type": "WithService", "branch": "North America - Plaza", "apn_username": "zylker", "device_name": "Zylker-Sales-iPad-12", "warranty_expiration_date": 1530057600000, "registered_time": 1527984000000, "name": "Zylker-Sales-iPad-12", "purchase_price": "65000", "asset_owner": "John Smith", "purchase_order_number": "SR2Ik56779", "location": "Building 3, Floor 2", "area_manager": "Mary Doe", "purchase_date": 1527984000000 } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` - **meid** (`string`): Mobile Equipment Identifier - **warranty_number** (`string`): Warranty number - **cellular_technology** (`integer`): Cellular technology type: 1 - None, 2 - GSM, 3 - CDMA - **office** (`string`): Office location - **apn_username** (`string`): APN username - **model_name** (`string`): Device model name - **warranty_expiration_date** (`long`): Warranty expiration date in milliseconds - **purchase_order_number** (`string`): Purchase order number - **model** (`string`): Device model identifier - **purchase_type** (`string`): Purchase type - **available_external_capacity** (`string`): Available external storage (GB) - **asset_tag** (`string`): Asset tag - **available_ram_memory** (`integer`): Available RAM (MB) - **warranty_type** (`string`): Warranty type - **product_name** (`string`): Product/manufacturer name - **modem_firmware_version** (`string`): Baseband firmware version - **purchase_price** (`integer`): Purchase price - **purchase_date** (`long`): Purchase date in milliseconds - **device_capacity** (`string`): Total device capacity (GB) - **is_lost_mode_enabled** (`boolean`): Whether Lost Mode is enabled - **description** (`string`): Device description - **managed_device_id** (`long`): Managed device resource identifier - **os_name** (`string`): Operating system name (e.g., Android, iOS) ## Possible Response Codes - **200** (`HTTP code`) ## Sample Response: HTTP 200 Device details updated successfully. ```json { "meid": "SM-G935F", "warranty_number": "SJSU64728372", "purchase_type": "Reseller", "available_external_capacity": "20.47", "asset_tag": "TestDevice", "cellular_technology": 1, "is_lost_mode_enabled": false, "description": "Belong to Zylker Inc", "available_ram_memory": 983, "managed_device_id": 9508000000013120, "office": "North Plaza,CA", "warranty_type": "WithService", "apn_username": "zylker", "product_name": "samsung", "modem_firmware_version": "10.10.00", "model_name": "hero2ltexx", "warranty_expiration_date": 1530057600000, "purchase_price": 65000, "purchase_order_number": "SR2Ik56779", "os_name": "Android", "model": "SM-G935F", "purchase_date": 1527984000000, "device_capacity": "24.81" } ``` ## Rate Limit **Duration:** 1 minute | **Threshold:** 60 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.