Create Squad
POST https://api.squadcast.com/v4/squads
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.
Request Body
{"owner_id"=>"6129ac15518568defa92794b", "name"=>"new squad", "members"=>[{"user_id"=>"607574e3d8aa170007090fb5", "role"=>"owner"}]}
RESPONSES
status: Created
{"data":{"organization_id":"60cb200bc9de4a0008d2fc42","owner_id":"6129ac15518568defa92794a","id":"6634addd8b38216aff48d0ed","name":"new squad","slug":"new-squad","members":[{"user_id":"607574e3d8aa170007090fb6","role":"owner"}],"created_at":"2024-05-03T09:26:53.113635007Z","created_by":"60f12dd3814bef0008c4037e"}}