Set FTP user root dir

Description

PATCH https://rest.netim.com/1.0/webhosting/{id}/ftp-rootdir/

Change the root directory of a FTP user.

URL Parameters

  • {id}
    Hosting ID.

Headers

  • Authorization string

    The Autorization header must start with “Bearer ” followed by the session ID.
    Example:”Autorization: Bearer b0f13a3c01d9cce2a9a44cd729f81c26″

  • Content-type string

    Content type of the request

    Only “application/json” is accepted

Body

REQUIRED

  • action string
    Set to “SetRootDir”.
  • params array

    {“username”: Name of the user,

    “rootDir”: Path of the user’s root directory starting from the root of the hosting,}

JSON example

{
    "action":"SetRootDir",
    "params":{"username":"admin", "rootdir": "/directory",},
}