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

import { SquadcastSDK } from "@solarwinds/squadcast-sdk-typescript";

const squadcastSDK = new SquadcastSDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await squadcastSDK.squads.list({
    ownerId: "<id>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.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

*/*

createV4

This endpoint is used to create a new 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

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.SquadsCreateSquadResponse>

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

*/*

updateMember

This endpoint is used to update a squad member's role and is only accessible if your organization is using the OBAC permission model.

If you're attempting to update a member's role from 'owner' to 'member', and that 'owner' is the last squad owner, then the 'replaceWith' query parameter is required. Setting 'replaceWith' to 'member' will promote the member to the role of owner.

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

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.V4SquadsUpdateSquadMemberResponse>

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

*/*

updateName

This endpoint is used to update squad's name. Requires access_token as a Bearer {{token}} in the Authorization header with squad-create scope.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.SquadsUpdateSquadNameResponse>

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

Standalone function

The standalone function version of this method:

Parameters

Parameter
Type
Required
Description

request

✔️

The request object to use for the request.

options

RequestOptions

Used to set various options for making HTTP requests.

options.fetchOptions

Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

options.retries

Enables retrying HTTP requests under certain failure conditions.

Response

Promise<Uint8Arrayarrow-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