Save Admin

<< Click to Display Table of Contents >>

Navigation:  Managing Syncplify.me Server! > REST API > SuperAdmin API > Admin >

Save Admin

Saves an administrative profile to the database.

 

Request

Method

URL

POST

/smserver/smsadm.SaveAdmin

RAW

POST /smserver/smsadm.SaveAdmin 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" : "YRSH3CVFQAXU3OAWAVIKM4HBJQ",

           "Username" : "admin",

           "PHType" : "V4Plus",

           "Salt" : "91227861",

           "Password" : "dd10e5be0ffadd64c1e490fbdefa64d8eb4a21380e29d521d1f0affdb44afbe798b4c320ee24257813c6dce4ef43fc56e1f4c625e4a76559ec0372c1738b8728",

           "AdminRole" : "Admin",

           "AccountStatus" : "Enabled",

           "AutoDisable" : true,

           "AllowedIPs" : [

               "127.0.0.1"

           ],

           "vserver" : "default",

           "AutoDisableWhen" : "2016-02-10T14:25:00"

       }

]

Explained

Saves an administrative profile into a specific virtual server.

 

Necessary fields:

vserver: the virtual server name

Username: the username of the admin profile you wish to save

 

Response

Method

URL

RAW

Accept-Encoding: synlz,gzip

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

 

 

{"result":[

   {

       "Result" : 1

   },

],"id":7721}

Explained

Result:

  1 = success

  any other value different from 1 = error

 

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