Bulk Edit IP Phones

Edit the extension assignment for multiple IP phones of the same model that use the same template.

Request URL

POST {base_url}/{api_path}/phone/batchupdate?access_token={access_token}

Request parameters

Parameter Required Type Description
batch_id_list Yes Array<Integer> The unique IDs of the auto provisioning IP phones.
Note:
phone_list Yes Array<Ext_Assign> The extension assignment for the phones.
Ext_Assign
Parameter Required Type Description
id Yes Integer The unique ID of the IP phone.
Note: You can query the phone's ID using Search Specific IP Phones.
mac Yes String The MAC address of the IP phone.
Note: You can query the IP phone's MAC address using Search Specific IP Phones.
ext_id Yes Integer The unique ID of the extension to be assigned to the IP phone.
Note: You can query the extension ID using Search Specific Extensions.

Response parameters

Table 1.
Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Examples

Request example

Change the extension assignment for two IP phones (ID: 75 and 90).

POST /openapi/v1.0/phone/batchupdate?access_token=fy59UJHFHJvOMthVlQM4z9sq6gFHcZVn HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json
User-Agent: OpenAPI

{
	"batch_id_list": [75, 90],
       "phone_list": [{
		"id": 75,
		"mac": "10:00:00:00:00:00",
		"ext_id": 7
	}, 
      {
		"id": 90,
		"mac": "11:11:11:11:11:11",
		"ext_id": 8
	}]
	
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
}