---
title: "Update ftp account"
method: PATCH
path: "/v1/sites/{id}/ftp/accounts"
tags: ["FTP Accounts"]
---

# Update ftp account

`PATCH /v1/sites/{id}/ftp/accounts`

Updates ftp account for given username

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Query parameters

- `username` string, required — FTP account username (with domain)

## Request body

- UpdateFtpAccountRequest
  - `new_password` string — Password for the FTP account
  - `quota` integer — FTP disk space quota in MB (0 = unlimited)
  - `homedir` string — Document root for the FTP account (relative the user's home directory)

## Response `200`

OK

- UpdateFtpAccountResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object
    - `quota` integer — FTP disk space quota in MB (unlimited = unlimited)
    - `homedir` string — Document root for the FTP account (relative the user's home directory)

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/revisions/db0dcbbc5764/schema)
