Update Squad Member

PUT https://api.squadcast.com/v4/squads/:squadID/members/:memberID?replaceWith=

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.

Request Params

KeyDatatypeRequiredDescription
replaceWithnull

Request Body

{"role"=>"member"}

RESPONSES

status: Created

{"data":{"id":"6634addd8b38216aff48d0ed","members":[{"user_id":"607574e3d8aa170007090fb5","role":"member"},{"user_id":"60cb1ef1c9de4a0008d2fadd","role":"owner"}]}}