API referenceSections

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

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
fidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • username string optional
  • password string optional
  • home string optional
  • read_only boolean optional
  • enabled boolean optional
Example
{
  "username": "string",
  "password": "string",
  "home": "string",
  "read_only": true,
  "enabled": true
}

Responses

200 Changed

Content type: application/json

  • id string required
  • tenant_id string required
  • site_id string required
  • server_id string required
  • username string required
  • home string required

    Folder under the site's public root; empty for all of it

  • read_only boolean required
  • enabled boolean required
  • created_at string (date-time) required
  • updated_at string (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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required