Differences
This shows you the differences between two versions of the page.
en:d-sdk:4_units:13_create_unit [2018/04/25 10:01] info@geliossoft.ru created |
en:d-sdk:4_units:13_create_unit [2018/04/25 20:45] support@geliossoft.ru |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | ====== Create Unit ====== |
+ | The request is intended to create new unit. | ||
- | ====== Создание объекта ====== | + | === Request Example === |
- | Запрос предназначен для создания объекта. | + | |
- | + | ||
- | === Пример запроса === | + | |
<code php>&svc=create_unit¶ms={ | <code php>&svc=create_unit¶ms={ | ||
"name": string, | "name": string, | ||
Line 17: | Line 15: | ||
}</code> | }</code> | ||
- | === Параметры === | + | === Parameters === |
- | ^ Параметр ^ Значение ^ | + | ^ Parameter ^ Description ^ |
- | | name | Название объекта | | + | | name | Unit Name | |
- | | is_free | Статус объекта (платный, бесплатный) | | + | | is_free | Unit status (paid, free) | |
- | | 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 === |
- | Возвращает уникальный идентификатор созданного объекта. | + | Returns Unique Unit ID of the created unit. |
- | === Ответ сервера === | + | === Server Response === |
- | == Результат добавления нового объекта == | + | == Result == |
<code php>{ | <code php>{ | ||
- | "unit_id": "66780" // ID созданного объекта | + | "unit_id": "66780" // Unique ID of the created unit. |
}</code> | }</code> |