Summary

The unsetDynamicConfig() mutation resets a dynamic configuration key to its default value on a LogScale cluster. Dynamic config changes apply immediately without a cluster restart. To assign a custom value instead, use setDynamicConfig(). This mutation requires ManageCluster permission.

API Stability Short-Term

Syntax

graphql
unsetDynamicConfig(
      input: UnsetDynamicConfigInputObject!
   ): Boolean!

The input argument is required and accepts an UnsetDynamicConfigInputObject. This object identifies the dynamic configuration key to reset. The Input Parameters section describes the fields in that object.

The mutation returns a non-null Boolean!. A return value of true confirms the reset succeeded. If the operation fails โ€” for example, due to an invalid key or insufficient permissions โ€” LogScale throws a GraphQL error rather than returning false.

Example

Raw
graphql
mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}
Mac OS or Linux (curl)
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}"
}
EOF
Mac OS or Linux (curl) One-line
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}"
}
EOF
Windows Cmd and curl
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql ^
    -H "Authorization: Bearer $TOKEN" ^
    -H "Content-Type: application/json" ^
    -d @'{"query" : "mutation { ^
  unsetDynamicConfig( input: ^
    { config: EnableDemoData } ^
  ) ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}"
}'
    "$YOUR_LOGSCALE_URL/graphql"
Perl
perl
#!/usr/bin/perl

use HTTP::Request;
use LWP;

my $TOKEN = "TOKEN";

my $uri = '$YOUR_LOGSCALE_URL/graphql';

my $query = "mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}";
$query =~ s/\n/ /g;
my $json = sprintf('{"query" : "%s"}',$query);
my $req = HTTP::Request->new("POST", $uri );

$req->header("Authorization" => "Bearer $TOKEN");
$req->header("Content-Type" => "application/json");

$req->content( $json );

my $lwp = LWP::UserAgent->new;

my $result = $lwp->request( $req );

print $result->{"_content"},"\n";
Python
python
#! /usr/local/bin/python3

import requests

url = '$YOUR_LOGSCALE_URL/graphql'
mydata = r'''{"query" : "mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}"
}'''

resp = requests.post(url,
                     data = mydata,
                     headers = {
   "Authorization" : "Bearer $TOKEN",
   "Content-Type" : "application/json"
}
)

print(resp.text)
Node.js
javascript
const https = require('https');

const data = JSON.stringify(
    {"query" : "mutation {
  unsetDynamicConfig( input:
    { config: EnableDemoData }
  )
}"
}
);


const options = {
  hostname: '$YOUR_LOGSCALE_URL',
  path: 'graphql',
  port: 443,
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Content-Length': data.length,
    Authorization: 'BEARER ' + process.env.TOKEN,
    'User-Agent': 'Node',
  },
};

const req = https.request(options, (res) => {
  let data = '';
  console.log(`statusCode: ${res.statusCode}`);

  res.on('data', (d) => {
    data += d;
  });
  res.on('end', () => {
    console.log(JSON.parse(data).data);
  });
});

req.on('error', (error) => {
  console.error(error);
});

req.write(data);
req.end();
Example Responses
Success (HTTP Response Code 200 OK)
json
{
  "data": {
    "unsetDynamicConfig": true
  }
}

Input Parameters

The input argument accepts an UnsetDynamicConfigInputObject with a single required field. The config field identifies the dynamic configuration key as a DynamicConfigName enum value. For a list of available keys, see Dynamic Configuration Parameters.

Table: UnsetDynamicConfigInputObject Input Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results.ย 
Table last updated: Oct 14, 2026ย 
configDynamicConfigyesย Short-Termย Unset dynamic configuration. See DynamicConfig .

Returned Values

The mutation returns a non-null Boolean!. A return value of true indicates the dynamic configuration was reset successfully. If the operation does not succeed, LogScale throws a GraphQL error โ€” for example, when the specified key is invalid or the caller lacks ManageCluster permission. Use dynamicConfig() after the mutation to confirm the default value is active.