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

set config

POST
/~/api/set_config

Request

Header Params
x-hfs-anti-csrf
string 
optional
necessary only for POST requests
Default:
1
Body Params application/json
values
object 
required
all keys are the defined in config.md file
Example
{
    "values": {}
}

Request 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_config' \
--header 'x-hfs-anti-csrf: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "values": {}
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-30 14:11:36
Previous
get config
Next
add account
Built with