/ftp/accounts/{name}
0.1.0Unchanged since publicationChange an FTP account's password or directory
filesallAdministrators can update any FTP account, and customers can update their own. Supply password, directory, or both. The API returns 400 if neither is supplied or if the login format is invalid. It returns 404 if the account does not exist. A successful response includes the updated FTP account in account.
The password must contain 8 to 128 printable characters. The directory path starts with /, which represents the customer's home. UrbeStack normalizes repeated slashes and . components. The API returns 400 for a directory path that lacks the leading / or contains a control character or a .. component, a path over 4096 characters, or a component over 255 characters. UrbeStack creates missing directories with mode 0755 and gives the customer ownership. The FTP account is confined to the selected directory and its contents. ProFTPD applies the changes at the next login.
As a command
Run as root on the serverParameters
namepath ·FtpAccountNameRequireddirectoryHomePathpasswordstring, up to 128 charactersExample
See the API overview for how to set $API and $TOKEN.curl -sS -X PATCH "$API/ftp/accounts/alice" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"directory": "text",
"password": "Sup3r-Secret-Passphrase"
}'200 OK{
"account": {
"created_at": "2026-09-09T10:15:00Z",
"directory": "text",
"expires_at": "2026-09-16T10:15:00Z",
"id": 1,
"last_login_at": "text",
"name": "alice",
"package": "basic",
"path": "public_html/index.php",
"user": "alice",
"user_id": 2
}
}Errors
20 errors, each a status and a sentence400--<_> is required400<what> climbs out of the home with ..400<what> has a name over 255 characters400<what> holds a control character400<what> is required400<what> is too long400<what> must start with /, which is the home400An FTP account is named <name>@<domain>400Domain name required400Domain name too long400Invalid domain name400Invalid password: 8 to 128 printable characters400Invalid system password hash400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Nothing to change400Nothing to change: give a password, a directory or both400Username '<value>' is reserved401Authentication required404The FTP account <login> does not exist404User '<user>' not foundurbestack.com/docs/api/patch-ftp-accounts-name/