Differences

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

Link to this comparison view

Next revision
Previous revision
en:d-sdk:4_units:15_update_unit [2018/04/25 10:02]
info@geliossoft.ru created
en:d-sdk:4_units:15_update_unit [2021/07/07 13:28] (current)
Line 1: Line 1:
-FIXME **This page is not fully translated, yetPlease help completing the translation.**\\ //(remove this paragraph once the translation is finished)//+====== Edit Unit ====== 
 +The request ​is intended to edit unit.
  
-====== Редактирование объекта ====== +=== Request Example ​===
-Запрос предназначен для редактирования объекта. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=update_unit&​params={ <code php>&​svc=update_unit&​params={
     "​id_unit":​ integer,     "​id_unit":​ integer,
Line 21: Line 19:
 }</​code>​ }</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| name | Название объекта ​+| name | Unit Name 
-| is_free | Статус объекта ​(платныйбесплатный) | +| is_free | Unit status ​(paidfree) | 
-| hw_type | Тип оборудования ​+| hw_type | Hardware type 
-| hw_id | Уникальный идентификатор оборудования ​+| hw_id | Hardware ID 
-| info | Информация об объекте ​+| info | Unit Info 
-| phone | Телефон объекта ​+| phone | Unit phone number ​
-| phone2 | Дополнительный телефон объекта ​+| phone2 | Additional unit phone number ​
-| max_permissible_speed | Максимальная разрешенная скорость объекта ​+| max_permissible_speed | Speed Limit 
-| camera_imei | Значение ​custom-field |+| camera_imei | custom-field ​value | 
  
-=== Дополнительно ​=== +=== Additional Information ​=== 
-Необязательные параметры: phone, phone2, type. +Optional Parameters: phone, phone2, type. 
-Вместо ​«+» нужно вводить ​«%2B».+Instead of «+» you need to enter «%2B».
  
-=== Ответ сервера ​=== +=== Server Response ​=== 
-== Результат редактирования объекта ​==+== Result: ​==
 <code php>{ <code php>{
-    "​result":​ true // Ответ запроса на редактирование ​(true или ​false)+    "​result":​ true // Status of editing ​(true or false)
 }</​code>​ }</​code>​