Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 1.26 KB

File metadata and controls

28 lines (20 loc) · 1.26 KB

Leave a Team

Causes the request sender to be removed from the team.

HTTP MethodURLRequires Auth
POST/api/v1/teams.leaveyes

Body Parameters

KeyExample ValueDescription
teamId* or teamName*ByehQjC44FwMeiLbX or team1The team ID or the team name. You must enter either one of these parameters.
rooms["8dugqGhuRvCBLdZft"]The team room IDs to remove the user from.

Example Call

curl  -H "X-Auth-Token: 8h2mKAwxB3AQrFSjLVKMooJyjdCFaA7W45sWlHP8IzO" \
      -H "X-User-Id: ew28FnZqipDpvKw3R" \
      -H "Content-type: application/json" \
      http://localhost:3000/api/v1/teams.leave \
      -d '{ 
            "teamName": "team1" }'

Example Response

{
  "success": true
}