team management

Bulk Delete Team Members Action

Remove up to 500 members from one team in one call. Same authorization as /team/member_delete: proxy admins, the team's admins, and admins of the team's organization. Each member is named by exactly one of user_id or user_email; unknown body fields are a 422 and an unknown team is a 404.

data holds one result per requested member, in request order. A row is success: false with an error when it names nobody on the team or repeats an earlier row. The roster is rewritten once, under the team's advisory lock, so a concurrent member_add is never overwritten from a stale read.

Example curl:

curl --location 'http://0.0.0.0:4000/management/v1/teams/team-1/members/bulk_delete'         --header 'Authorization: Bearer sk-1234'         --header 'Content-Type: application/json'         --data '{"members": [{"user_id": "user-1"}, {"user_email": "user-2@example.com"}]}'
post/management/v1/teams/{team_id}/members/bulk_delete

Request

  • Base URL: https://apiclaw.biz (the document declares no server; this is the origin it was published from)
  • URL: https://apiclaw.biz/management/v1/teams/{team_id}/members/bulk_delete
  • Auth: API key in header x-litellm-api-key

Path parameters

team_idstring required

Request body

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.