SquadsV4
Overview
Available Operations
getById
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
import { SquadcastSDK } from "@solarwinds/squadcast-sdk-typescript";
const squadcastSDK = new SquadcastSDK({
refreshTokenAuth: "<YOUR_REFRESH_TOKEN_AUTH_HERE>",
});
async function run() {
const result = await squadcastSDK.squadsV4.getById({
squadID: "<id>",
});
console.log(result);
}
run();Standalone function
The standalone function version of this method:
Parameters
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.
Response
Promise<operations.SquadsGetSquadByIdResponse>
Errors
errors.CommonV4Error
400, 401, 402, 403, 404, 409, 422
application/json
errors.CommonV4Error
500, 502, 503, 504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
update
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
Standalone function
The standalone function version of this method:
Parameters
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.
Response
Promise<operations.SquadsUpdateSquadResponse>
Errors
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