---
title: "setActivePresetRequestWith(_:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthermostat/setactivepresetrequestwith(_:completion:)"
---

# setActivePresetRequestWith(_:completion:)

Command SetActivePresetRequest

## Declaration

```swift
func setActivePresetRequestWith(_ params: MTRThermostatClusterSetActivePresetRequestParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setActivePresetRequestWith(_ params: MTRThermostatClusterSetActivePresetRequestParams) async throws
```

## Discussion

Discussion This command will set the active preset to the provided preset handle.
