/config
This endpoint does not modify the service configuration: currently none of the parameters returned by GET /config can be updated at runtime, and the request responds 200 even though it applies no change.
port
Read-only
number_of_threads
Read-only
connection_timeout
Read-only
keep_alive_request_number
Read-only
client_max_body_size
Read-only
logger_path
Read-only
logger_level
Read-only
logger_rotation
Read-only
logger_max_files
Read-only
All parameters are configured at startup, through
config.jsonor theFACEPHI_BACKEND1N_REST_*environment variables. Changing them requires restarting the service.JWT authentication settings (
auth_*) are startup-only:GETdoes not return them and this endpoint does not allow modifying them.
Body for the config request. Currently the service does not apply any parameter received at this endpoint (see the POST /config table) nor does it accept JWT authentication parameters.
JSON string with the service configuration parameters.
Message with the result of the operation.
Configuration updated successfullyIncorrect parameters were received in the request.
An error occurred while calling the backend.
POST /config HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"config_json_string": "text"
}{
"message": "Configuration updated successfully"
}Last updated