Both sides previous revision
Предыдущая версия
Следущая версия
|
Предыдущая версия
|
ru:sidebar:remoteapi:apiref:unit:update_hw_params [14/01/2013 14:12] zuve |
ru:sidebar:remoteapi:apiref:unit:update_hw_params [29/11/2013 13:31] (текущий) |
| |
<code> | <code> |
| POST /wialon/ajax.html?svc=unit/update_hw_params&sid=<long> HTTP/1.1 |
| Host: <host> |
| Connection: keep-alive |
| Content-Length: <uint> |
| Cache-Control: max-age=0 |
| Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryUZNF25nwwhMzU9Me |
| Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
| Accept-Encoding: gzip,deflate,sdch |
| Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4 |
| Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.3 |
| |
------WebKitFormBoundaryUZNF25nwwhMzU9Me | ------WebKitFormBoundaryUZNF25nwwhMzU9Me |
Content-Disposition: form-data; name="params" | Content-Disposition: form-data; name="params" |
| |
{"itemId":<itemId>,"hwId":<hwId>,"params_data":{"reset_all":0,"params":[ | {"itemId":<long>,"hwId":<text>,"params_data":{"reset_all":0,"params":[ |
{"name":"custom_polls_file","type":"file","value":"cfg_param_custom_polls_file","data":"","reset":0}], | {"name":"custom_polls_file","type":"file","value":"cfg_param_custom_polls_file","data":"","reset":0}], |
"full_data":0},"action":"set"} | "full_data":0},"action":"set"} |