Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.29 KB

File metadata and controls

30 lines (22 loc) · 1.29 KB

Delete a Team

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

{% hint style="info" %} Permission required: delete-team {% endhint %}

Body Parameters

KeyExample ValueDescription
teamId* or teamName*ByehQjC44FwMeiLbX team1The team ID or the team name. You must enter either one of these parameters.
roomsToRemove["8dugqGhuRvCBLdZft"]The room ID. to delete along with the team.

Example Call

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

Example Response

{
  "success": true
}