> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-native-c/functions/setautorotationsetting.md).

# SetAutoRotationSetting

Configure rotation behavior.

```c
GoInt SetAutoRotationSetting(GoInt rateLimit, GoUint8 onlyPortHasConfig)
```

***

## Parameters

* **rateLimit**: Rotation interval/rate limit.
* **onlyPortHasConfig**: 0 = apply to active ports; 1 = only to active ports with configure-port enabled.

## Return Value

* GoInt: 0 on success.

## Example

```c
// Some code

SetAutoRotationSetting(60, 1);

```
