Skip to main content

Update FTP Account

Updates an existing FTP account.

The Management API uses partial updates (PATCH), meaning you only need to provide the fields you want to change.

Fields omitted from the request remain unchanged.

Required Scope

ftpaccount.update

Endpoint

PATCH /ftpaccounts

Example Request

http PATCH https://api.ftpgrid.com/ftpaccounts \
Authorization:"Bearer YOUR_TOKEN" \
Id:=1234 \
Description="Updated warehouse camera" \
Enabled:=false

Request Fields

FieldTypeRequiredDescription
IdintegerYesFTP account ID
UsernamestringNoFTP/SFTP username
PasswordstringNoPassword for authentication
AccessRightsstringNoRO or RW
ChrootstringNoChroot directory
DescriptionstringNoInternal description
EnabledbooleanNoEnable or disable the account
RsaKeystringNoSSH public key

Partial Update Behavior

Only supplied fields are updated.

For example:

http PATCH https://api.ftpgrid.com/ftpaccounts \
Authorization:"Bearer YOUR_TOKEN" \
Id:=1234 \
Enabled:=false

will only disable the account while leaving all other settings unchanged.

Example Response

{
"rslt": "OK"
}

The API backend will return "OK", even if no fields are updated.

Notes

  • Passwords are never returned by the API
  • Updating the password immediately invalidates the previous password
  • Chroot paths must use Unix-style paths
  • Windows path separators (\) are not supported
  • SSH public keys must be provided in OpenSSH public key format
  • Disabling an account immediately blocks FTP, FTPS, SFTP, and SCP access