SquadsV4
Overview
Available Operations
create - Create Squad
update_name - Update Squad Name
create
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
from squadcast import SquadcastSDK
with SquadcastSDK(
refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:
res = squadcast_sdk.squads_v4.create(owner_id="<id>", name="<value>", members=[
{
"user_id": "<id>",
},
])
# Handle response
print(res)
Parameters
owner_id
str
✔️
N/A
name
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
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_name
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
Parameters
squad_id
str
✔️
N/A
name
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
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