Change an FTP account's folder, access, state or password (empty keeps it)
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
PUT
/api/v1/tenants/{tid}/sites/{id}/ftp/{fid}Change an FTP account's folder, access, state or password (empty keeps it)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
fid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
usernamestring optionalpasswordstring optionalhomestring optionalread_onlyboolean optionalenabledboolean optional
Example
{
"username": "string",
"password": "string",
"home": "string",
"read_only": true,
"enabled": true
}Responses
200 Changed
Content type: application/json
idstring requiredtenant_idstring requiredsite_idstring requiredserver_idstring requiredusernamestring requiredhomestring requiredFolder under the site's public root; empty for all of it
read_onlyboolean requiredenabledboolean requiredcreated_atstring (date-time) requiredupdated_atstring (date-time) required
Example
{
"id": "string",
"tenant_id": "string",
"site_id": "string",
"server_id": "string",
"username": "string",
"home": "string",
"read_only": true,
"enabled": true,
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required