Save VirtualFileSystem

<< Click to Display Table of Contents >>

Navigation:  Managing Syncplify.me Server! > REST API > Admin API > Virtual File System (VFS) >

Save VirtualFileSystem

Saves a Virtual File System (VFS) configuration to a virtual server's database.

 

Request

Method

URL

POST

/smserver-default/sms.SaveVFS

RAW

POST /smserver-default/sms.SaveVFS HTTP/1.1

Cache-Control: no-cache

Connection: Keep-Alive

Pragma: no-cache

Content-Type: application/json; charset=UTF-8

Accept: */*

Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

 

[

{

           "_id" : "K4EP2GNQXV3E3CXTXRR63DL4MI",

           "VFSName" : "SA",

           "TargetType" : "Disk",

           "Target" : "C:\\ProgramData\\Syncplify.me\\ServerV4\\WebRootSA\\",

           "EncryptionPass" : "",

           "SoftQuota" : 0,

           "HardQuota" : 0

       }

]

Explained

Saves a virtual file system (VFS) item to the database.

 

Payload: the entire VFS object.

 

Response

Method

URL

RAW

Accept-Encoding: synlz,gzip

Content-Type: application/json; charset=UTF-8

 

 

{"result":[

  "result": 1

],"id":772674711}

Explained

Result:

  1 = success

  any other value different from 1 = error

 

ResultMsg: a friendly message (success or error message) explaining what happened