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

# Incidents.Tags

## Overview

### Available Operations

* [update](#update) - Update Tag
* [append](#append) - Append Tag

## update

Update Tag

### Example Usage

```python
from squadcast import SquadcastSDK


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

    res = squadcast_sdk.incidents.tags.update(incident_id="<id>", tags={})

    # Handle response
    print(res)

```

### Parameters

| Parameter     | Type                                                                                                                                                          | Required             | Description                                                         |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------- |
| `incident_id` | *str*                                                                                                                                                         | :heavy\_check\_mark: | N/A                                                                 |
| `tags`        | [models.V3IncidentsTagsUpdateTagRequestTags](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v3incidentstagsupdatetagrequesttags.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.TagsUpdateTagResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/tagsupdatetagresponse.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    | \*/\*            |

## append

Append Tag

### Example Usage

```python
from squadcast import SquadcastSDK


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

    res = squadcast_sdk.incidents.tags.append(incident_id="<id>")

    # Handle response
    print(res)

```

### Parameters

| Parameter     | Type                                                                                                                                                                      | Required             | Description                                                         |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------- |
| `incident_id` | *str*                                                                                                                                                                     | :heavy\_check\_mark: | N/A                                                                 |
| `tags`        | [Optional\[models.V3IncidentsTagsAppendTagRequestTags\]](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v3incidentstagsappendtagrequesttags.md) | :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.TagsAppendTagResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/tagsappendtagresponse.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    | \*/\*            |
