create_ftp_account
Create an SFTP account on a site.
The account is chrooted to /var/www and lands in home_dir. Password must be at least 8 characters. Username must be lowercase alphanumeric.
Requires: API key with write scope.
Args: slug: Site identifier username: SFTP username (lowercase, max 32 chars) password: Password (min 8 chars) home_dir: Landing directory inside /var/www. Leave empty to land at /var/www itself, which lists every site directory.
Returns: {"success": true, "username": "sftpuser", "home_dir": "/wordpress", "protocol": "sftp"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| home_dir | No | ||
| password | Yes | ||
| username | Yes |