> For the complete documentation index, see [llms.txt](https://developers.incidents.cloud.solarwinds.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/sdks/rulesets.md).

# Rulesets

## Overview

### Available Operations

* [reorder](#reorder) - Reorder Ruleset

## reorder

Reorder rules of a GER Ruleset

### Example Usage

```python
from squadcast import SquadcastSDK


with SquadcastSDK(
    refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:

    res = squadcast_sdk.rulesets.reorder(ger_id=572014, alert_source_version="<value>", alert_source_shortname="<value>")

    # Handle response
    print(res)

```

### Parameters

| Parameter                | Type                                                                                                                           | Required             | Description                                                         |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `ger_id`                 | *int*                                                                                                                          | :heavy\_check\_mark: | N/A                                                                 |
| `alert_source_version`   | *str*                                                                                                                          | :heavy\_check\_mark: | N/A                                                                 |
| `alert_source_shortname` | *str*                                                                                                                          | :heavy\_check\_mark: | N/A                                                                 |
| `ordering`               | List\[*int*]                                                                                                                   | :heavy\_minus\_sign: | N/A                                                                 |
| `retries`                | [Optional\[utils.RetryConfig\]](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/utils/retryconfig.md) | :heavy\_minus\_sign: | Configuration to override the default retry behavior of the client. |

### Response

[**models.GlobalEventRulesReorderRulesetResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/globaleventrulesreorderrulesetresponse.md)

### Errors

| Error Type             | Status Code | Content Type |
| ---------------------- | ----------- | ------------ |
| errors.SDKDefaultError | 4XX, 5XX    | \*/\*        |
