Differences

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

Link to this comparison view

en:sidebar:remoteapi:apiref:item:update_ftp_property [21/02/2017 08:50] (current)
stan created
Line 1: Line 1:
 +====== Custom FTP settings ​  ​======
 +
 +To update custom FTP settings, use command **item/​update_ftp_property**: ​
 +<code javascript>​
 +svc=item/​update_ftp_property&​params={"​itemId":<​long>,​
 +      "​host":​ <​text>,​
 +      "​login":<​text>,​
 +      "​pass":<​text>,​
 +      "​path":<​text>,​
 +      "​check":<​uint>,​
 +      "​hostingFtp":<​uint>​}
 +</​code>​
 +
 +===== Parameters =====
 +^ Name ^ Description ^
 +| itemId | resource ID |
 +| host | FTP URL  |
 +| login | FTP login |
 +| pass | FTP password |
 +| path | directory path |
 +| check | valid FTP settings: 1-yes(default),​ 0-no |
 +| hostingFtp | send data to Wialon Hosting FTP: 1 - yes, 0 - no |
 +
 +:!: To send data to custom ​ FTP - "​hostingFtp"​ must be 0, check - 1.
 +
 +===== Response =====
 +
 +<code javascript>​
 +
 +{
 +   "​hs":<​text>,​ /​* FTP URL */  ​
 +   "​lg":<​text>,​ /​* FTP login */  ​
 +   "​pt":<​text>,​ /​* directory path */  ​
 +   "​ch":<​uint>,​ /​* valid FTP settings */  ​
 +   "​tp":<​uint>​ /​* send data to Wialon Hosting FTP */  ​
 +}
 +</​code>​
  
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam