Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:d-sdk:4_units:15_update_unit [2018/04/25 20:58]
support@geliossoft.ru
en:d-sdk:4_units:15_update_unit [2021/07/07 13:28]
Line 1: Line 1:
-====== Edit Unit ====== 
-The request is intended to edit unit. 
  
-=== Request Example === 
-<code php>&​svc=update_unit&​params={ 
-    "​id_unit":​ integer, 
-    "​name":​ string, 
-    "​is_free":​ integer, 
-    "​hw_type":​ string, 
-    "​hw_id":​ string, 
-    "​phone":​ string, 
-    "​phone2":​ string, 
-    "​type":​ string, 
-    "​info":​ json, 
-    "​phone":​ string, 
-    "​phone2":​ string, 
-    "​max_permissible_speed":​ integer, 
-    "​camera_imei":​ string 
-}</​code>​ 
- 
-=== Parameters === 
-^ Parameter ​  ^ Description ​  ^ 
-| name | Unit Name | 
-| is_free | Unit status (paid, free) | 
-| hw_type | Hardware type | 
-| hw_id | Hardware ID | 
-| info | Unit Info | 
-| phone | Unit phone number | 
-| phone2 | Additional unit phone number | 
-| max_permissible_speed | Speed Limit | 
-| camera_imei | custom-field value | 
- 
- 
-=== Additional Information === 
-Optional Parameters: phone, phone2, type. 
-Instead of «+» you need to enter «%2B». 
- 
-=== Server Response === 
-== Result: == 
-<code php>{ 
-    "​result":​ true // Status of editing (true or false) 
-}</​code>​