Skip to main content
FTP Management

Create an FTP user on a server

Asynchronous Request

Creates a Pure-FTPd user on the selected server and tracks it in Webdock metadata. The user gets FTP access to the given home directory only.

Creating an FTP user grants remote write access to files on the server, so treat this as a credential-issuing operation. Webdock does not store the password, so it cannot be retrieved later; reissue the user if the password is lost.

POST
/servers/{serverSlug}/ftp/users
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server whose FTP users are being managed

Body

application/json

FTP user create payload for a specific server

groupstring

Optional Linux group for the FTP user (a-zA-Z0-9_- , must start with a letter or underscore). Defaults to www-data when omitted, which is what the webserver runs as on Webdock stacks.

Example: www-data
homeDirstring

Optional absolute home directory the FTP user is restricted to. Defaults to /var/www when omitted. Relative paths and path traversal are rejected.

Example: /var/www
passwordstringrequired

FTP password. Alphanumeric characters only (a-zA-Z0-9). Webdock does not store this password, so it cannot be read back later.

usernamestringrequired

FTP username. Alphanumeric characters only (a-zA-Z0-9); dashes are converted to underscores and the name is truncated to 32 characters. Must not already exist for this server.

Response

application/json

FTP user create request accepted

X-Callback-IDstringheader

CallbackID

createdstring

Datetime the FTP user was created in Webdock metadata

groupstring

Linux group the FTP user belongs to on the server

Example: www-data
homeDirstring

Absolute path the FTP user is chrooted into on the server

Example: /var/www
idinteger

FTP user ID from Webdock metadata storage. Use this value as ftpUserId when deleting the user.

usernamestring

FTP username as created on the server