circle-info
Squadcast is now SolarWinds Incident Response

Squads

Overview

Available Operations

list

This endpoint is used to get all the squads details of your organization. Requires access_token as a Bearer {{token}} in the Authorization header with squad-read scope.

Example Usage

from squadcast_sdk import SquadcastSDK


with SquadcastSDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as ss_client:

    res = ss_client.squads.list(owner_id="<id>")

    # Handle response
    print(res)

Parameters

Parameter
Type
Required
Description

owner_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SquadsGetAllSquadsResponse

Errors

Error Type
Status Code
Content Type

errors.CommonV4Error

400, 401, 402, 403, 404, 409, 422

application/json

errors.CommonV4Error

500, 502, 503, 504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

get_by_id

This endpoint is used to get the squads details by id. Requires access_token as a Bearer {{token}} in the Authorization header with squad-read scope.

Example Usage

Parameters

Parameter
Type
Required
Description

squad_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SquadsGetSquadByIDResponse

Errors

Error Type
Status Code
Content Type

errors.CommonV4Error

400, 401, 402, 403, 404, 409, 422

application/json

errors.CommonV4Error

500, 502, 503, 504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

update_v4

This endpoint is used to update squad.

The role will be considered only if your organization is on the OBAC permission model; otherwise, the role field will be ignored, and only the member will be added to the squad. Requires access_token as a Bearer {{token}} in the Authorization header with squad-create scope.

Example Usage

Parameters

Parameter
Type
Required
Description

squad_id

str

✔️

N/A

name

Optional[str]

N/A

members

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SquadsUpdateSquadResponse

Errors

Error Type
Status Code
Content Type

errors.CommonV4Error

400, 401, 402, 403, 404, 409, 422

application/json

errors.CommonV4Error

500, 502, 503, 504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

remove_member

This endpoint is used to update squad member's role.

If you're attempting to remove a member whose role is 'owner', and that 'owner' is the last squad owner, then the 'replaceWith' query parameter is required. Setting 'replaceWith' to 'member' will promote another member as the owner, and the specified member will be removed.

Requires access_token as a Bearer {{token}} in the Authorization header with squad-create scope.

Example Usage

Parameters

Parameter
Type
Required
Description

squad_id

str

✔️

N/A

member_id

str

✔️

N/A

replace_with

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.V4SquadsRemoveSquadMemberResponse

Errors

Error Type
Status Code
Content Type

errors.CommonV4Error

400, 401, 402, 403, 404, 409, 422

application/json

errors.CommonV4Error

500, 502, 503, 504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

delete

This endpoint is used to delete the squad. Squad should not be assigned to any incident or part of any escalation policy. Requires access_token as a Bearer {{token}} in the Authorization header with squad-update scope.

Example Usage

Parameters

Parameter
Type
Required
Description

squad_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

bytesarrow-up-right

Errors

Error Type
Status Code
Content Type

errors.CommonV4Error

400, 401, 402, 403, 404, 409, 422

application/json

errors.CommonV4Error

500, 502, 503, 504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

Last updated