1. accounts
HFS 3
  • Introduction
  • SendList over SSE
  • Front-end
    • List files
      GET
    • Upload
      PUT
    • Upload
      POST
    • Delete
      DELETE
    • Create folder
      POST
  • Admin
    • misc
      • get config
      • set config
    • accounts
      • add account
        POST
      • update account
        POST
      • list accounts
        GET
      • delete account
        POST
      • list usernames
        GET
      • get account
        GET
      • list admins
        GET
      • safer update of the password
        POST
    • VFS
    • plugins
      • get plugin config
      • set plugin config
    • monitoring
    • log
  • Schemas
    • Schemas
    • DirEntry
    • inline_response_200
    • folder_body
    • Account
    • Date
  1. accounts

update account

POST
/~/api/set_account

Request

Header Params

Body Params application/json

Example
{
    "username": "string",
    "changes": {
        "username": "string",
        "password": "string",
        "belongs": [
            "string"
        ],
        "ignore_limits": true,
        "disable_password_change": true,
        "admin": true,
        "redirect": "string",
        "disabled": true,
        "expire": "2019-08-24T14:15:22.123Z",
        "days_to_live": 0
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost/~/api/set_account' \
--header 'x-hfs-anti-csrf: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "string",
    "changes": {
        "username": "string",
        "password": "string",
        "belongs": [
            "string"
        ],
        "ignore_limits": true,
        "disable_password_change": true,
        "admin": true,
        "redirect": "string",
        "disabled": true,
        "expire": "2019-08-24T14:15:22.123Z",
        "days_to_live": 0
    }
}'

Responses

🟢200Success
application/json
Success
Body

Example
{
    "username": "string"
}
Modified at 2026-03-24 12:02:39
Previous
add account
Next
list accounts
Built with