Skip to content
SoulFire LogoSoulFire

Update server config entry

PUT
/v1/server/config/namespaces/{namespace}/entries/{key}

Updates a single configuration entry identified by namespace and key. This is a granular update operation for modifying individual settings.

This is the preferred method for real-time UI interactions where users modify settings one at a time. It avoids overwriting unrelated settings and is more efficient than replacing the entire configuration.

If the namespace doesn't exist, it will be created. If the key doesn't exist within the namespace, it will be added. Existing values are overwritten.

The change is persisted to the database, and runtime hooks are triggered to apply the new value immediately where applicable.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

namespace*string

The namespace of the setting to update. Namespaces group related settings together (e.g., "dev" for developer settings). Must match an existing namespace or a new namespace will be created.

key*string

The key identifying the specific setting within the namespace. Combined with namespace, this uniquely identifies the setting. Example: namespace="dev", key="soulfire-debug" for the SoulFire debug setting.

Request Body

application/json
  1. body

Request message for UpdateServerConfigEntry RPC. Used for granular updates of individual configuration entries. This is the preferred method for real-time UI updates as it only modifies a single setting without affecting other configuration values.

value*unknown

The new value for the setting. Uses google.protobuf.Value to support various JSON types:

  • string_value for text settings
  • number_value for int/double settings
  • bool_value for boolean settings
  • list_value for string list settings
  • struct_value for complex settings like min/max ranges

Response Body

Response message for UpdateServerConfigEntry RPC.

application/json
  1. response

Response message for UpdateServerConfigEntry RPC. An empty response indicates the setting was successfully updated. The change is persisted to the database and runtime hooks are triggered to apply the new value immediately where applicable.

Example Request
curl -X PUT 'http://127.0.0.1:38765/v1/server/config/namespaces/string/entries/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "value": null
}'
Example Response
{}

Was this page helpful?