Skip to main content

Overview

Update the name of a validator and the sensitivity of its dynamic threshold in a single mutation. The threshold is part of the validator input, under a variant-specific key (dynamic for DynamicThreshold).
When you create, update, or delete an object, you use a mutation operation instead of a query.

Steps

1

Create the mutation

Create a single validatorUpdate mutation that covers both the name and the threshold update.
2

Create the variables

Build the input with the validator ID, the new name, and the threshold under its variant-specific key (dynamic). For a validator with a fixed threshold, use fixed instead.
3

Send the request

Send the mutation with the input. The server applies both changes atomically.

Full code sample

Python

Example response

JSON