Update Squad

PUT https://api.squadcast.com/v4/squads/:squadID

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.

Request Body

{"owner_id"=>"6129ac15518568defa92794b", "name"=>"new squad", "members"=>[{"user_id"=>"607574e3d8aa170007090fb5", "role"=>"owner"}]}

RESPONSES

status: Created

{"data":{"id":"6634addd8b38216aff48d0ed","org_id":"60cb200bc9de4a0008d2fc41","team_id":"6129ac15518568defa92794b","name":"new squad 1","members":[{"user_id":"607574e3d8aa170007090fb5","role":"owner"},{"user_id":"60cb1ef1c9de4a0008d2fadd","role":"member"}],"createdAt":"2024-05-03T09:26:53.113Z","createdBy":"60f12dd3814bef0008c4036e","updatedAt":"2024-05-03T09:39:40.333Z","updatedBy":"60f12dd3814bef0008c4036e"}}