> 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/globaloncallreminderrulessdk.md).

# GlobalOncallReminderRules

## Overview

### Available Operations

* [delete](#delete) - Delete Global Oncall Reminder Rules
* [get](#get) - Get Global Oncall Reminder Rules
* [create](#create) - Create Global Oncall Reminder Rules
* [update](#update) - Update Global Oncall Reminder Rules

## delete

Delete Global Oncall Reminder Rules

### Example Usage

```python
from squadcast import SquadcastSDK


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

    res = squadcast_sdk.global_oncall_reminder_rules.delete(owner_id="<id>")

    # Handle response
    print(res)

```

### Parameters

| Parameter  | Type                                                                                                                           | Required             | Description                                                         |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `owner_id` | *str*                                                                                                                          | :heavy\_check\_mark: | 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

[**bytes**](https://github.com/solarwinds/squadcast-sdk-python/tree/main/squadcastv1/docs/models/.md/README.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |

## get

Get Global Oncall Reminder Rules

### Example Usage

```python
from squadcast import SquadcastSDK


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

    res = squadcast_sdk.global_oncall_reminder_rules.get(owner_id="<id>")

    # Handle response
    print(res)

```

### Parameters

| Parameter  | Type                                                                                                                           | Required             | Description                                                         |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `owner_id` | *str*                                                                                                                          | :heavy\_check\_mark: | required \*                                                         |
| `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.GlobalOncallReminderRulesGetGlobalOncallReminderRulesResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/globaloncallreminderrulesgetglobaloncallreminderrulesresponse.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |

## create

Create Global Oncall Reminder Rules

### Example Usage

```python
from squadcast import SquadcastSDK


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

    res = squadcast_sdk.global_oncall_reminder_rules.create(is_enabled=True, owner_id="<id>", rules=[])

    # Handle response
    print(res)

```

### Parameters

| Parameter    | Type                                                                                                                                                         | Required             | Description                                                         |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `is_enabled` | *bool*                                                                                                                                                       | :heavy\_check\_mark: | N/A                                                                 |
| `owner_id`   | *str*                                                                                                                                                        | :heavy\_check\_mark: | N/A                                                                 |
| `rules`      | List\[[models.V3GlobalOncallReminderRulesRule](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v3globaloncallreminderrulesrule.md)] | :heavy\_check\_mark: | 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.GlobalOncallReminderRulesCreateGlobalOncallReminderRulesResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/globaloncallreminderrulescreateglobaloncallreminderrulesresponse.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |

## update

Update Global Oncall Reminder Rules

### Example Usage

```python
from squadcast import SquadcastSDK


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

    res = squadcast_sdk.global_oncall_reminder_rules.update(owner_id="<id>", is_enabled=True, rules=[])

    # Handle response
    print(res)

```

### Parameters

| Parameter    | Type                                                                                                                                                         | Required             | Description                                                         |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `owner_id`   | *str*                                                                                                                                                        | :heavy\_check\_mark: | N/A                                                                 |
| `is_enabled` | *bool*                                                                                                                                                       | :heavy\_check\_mark: | N/A                                                                 |
| `rules`      | List\[[models.V3GlobalOncallReminderRulesRule](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v3globaloncallreminderrulesrule.md)] | :heavy\_check\_mark: | 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.GlobalOncallReminderRulesUpdateGlobalOncallReminderRulesResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/globaloncallreminderrulesupdateglobaloncallreminderrulesresponse.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |
