# Team User Destroy

Delete Team User

Method: DELETE

# Endpoint:

https://api.serveravatar.com/teams/{team_id}/users/{id}

# Request Example:

curl --request DELETE \
  --url "https://api.serveravatar.com/teams/1101/users/1854" 
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Team User Delete

  • 200 (Ok)
{
    "message": "Team user successfully deleted!"
}

# Team User Not Found

  • 404 (Not Found)
{
    "message":"Team user not found!"
}

# Team Not Found

  • 404 (Not Found)
{
    "message":"Team not found!"
}

# Member can't a Delete User

  • 500 (Internal Server Error)
{
    "message": "You cannot delete user from this team!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message":"Something went really wrong!"
}