1. accounts
HFS 3
  • Introduction
  • SendList over SSE
  • Front-end
    • List files
      GET
    • Upload
      PUT
    • Upload
      POST
    • Delete
      DELETE
    • Create folder
      POST
    • Refresh session
      GET
    • Login
      POST
    • Login SRP step 1
      POST
    • Login SRP step 2
      POST
    • Logout
      POST
    • Subscribe to notifications
      GET
    • File details
      GET
    • Rename entry
      POST
    • Move files
      POST
    • Copy files
      POST
    • Set comment
      POST
    • Folder size
      GET
    • Folder size progress
      GET
  • 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
      • Change password with SRP
        POST
    • VFS
    • plugins
      • get plugin config
      • set plugin config
    • monitoring
    • log
  • Schemas
    • Schemas
    • DirEntry
    • inline_response_200
    • Session
    • folder_body
    • SrpStep1
    • UploadResult
    • Account
    • MultipartUploadResult
    • FolderSize
    • UploadMeta
    • Date
    • FileDetails
    • FileDetailsResponse
    • MoveFilesResponse
  1. accounts

add account

POST
/~/api/add_account

Request

Header Params

Body Params application/json

Example
{
    "username": "john",
    "password": "betterUseLongPasswords",
    "overwrite": false
}

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 'http://localhost/~/api/add_account' \
--header 'x-hfs-anti-csrf: 1' \
--header 'Content-Type: application/json' \
--data '{
    "username": "john",
    "password": "betterUseLongPasswords",
    "overwrite": false
}'

Responses

🟢200Success
application/json
Success
Bodyapplication/json

Example
{
    "username": "string"
}
Modified at 2026-11-05 17:14:33
Previous
set config
Next
update account
Built with