Remove a team member from team

Removes a member from the team by their ID. This action cannot be undone.

Removing a user with the admin role is not permitted via the API.

DELETE https://betterstack.com/api/v2/team-members/{id}

URL parameters

id
required string

Query parameters

team_name
string

Headers

Authorization
required string
204
404

Response body

{
  "errors": "Resource type user with id = 999 was not found"
}
403

Response body

{
  "errors": "Removing admins is not allowed via API"
}

Example cURL

Example
curl --request DELETE \
  --url "https://betterstack.com/api/v2/team-members/102" \
  --header "Authorization: Bearer $TOKEN"