mutation updateConfigAutotuning(
  $autotuningInput: AutotuningIn!
  $apply: Boolean!
) {
  bosminer {
    config {
      updateAutotuning(apply: $apply, input: $autotuningInput) {
        ... on AutotuningOut {
          __typename
        }
        ... on AttributeError {
          __typename
          message
        }
        ... on AutotuningError {
          psuPowerLimit
          message
          powerScaling {
            minPsuPowerLimit
            shutdownDuration
            powerStep
          }
        }
      }
    }
  }
}
