update_ftp_property

The update_ftp_property function is used to update custom FTP settings.

Copied!
svc=item/update_ftp_property&params={"itemId":<long>,
				     				 "host":"<text>",
				     				 "login":"<text>",
				     				 "pass":"<text>",
				     				 "path":"<text>",
				     				 "check":<uint>,
				     				 "hostingFtp":<uint>}

Parameters

NameDescription
itemIdResource ID.
hostFTP URL.
loginFTP login.
passFTP password.
pathDirectory path.
check

Valid FTP settings:

  • 0 — no;
  • 1 — yes.
hostingFtp

Send data to the Wialon Hosting FTP:

  • 0 — no;
  • 1 — yes.

Returned result

Copied!
{
   "hs":"<text>",	/* FTP URL */  
   "lg":"<text>",	/* FTP login */  
   "pt":"<text>",	/* directory path */  
   "ch":<uint>,	/* valid FTP settings */  
   "tp":<uint>	/* send data to the Wialon Hosting FTP */  
}

Possible error codes:

CodeDescription
7

Failed to fetch the item with the desired ACL(ADF_ACL_ITEM_EDIT_OTHER).

6Undefined error.
4Wrong input parameters.
Download PDF file
Download Word document

See also