MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / remove_users

Method remove_users

api/organisations/views.py:165–172  ·  view source on GitHub ↗

Takes a list of users and removes them from the organisation provided in the url

(self, request, pk)

Source from the content-addressed store, hash-verified

163
164 @action(detail=True, methods=["POST"], url_path="remove-users")
165 def remove_users(self, request, pk): # type: ignore[no-untyped-def]
166 """
167 Takes a list of users and removes them from the organisation provided in the url
168 """
169 serializer = self.get_serializer(data=request.data, many=True)
170 serializer.is_valid(raise_exception=True)
171 serializer.save()
172 return Response(serializer.data, status=200)
173
174 @extend_schema(
175 deprecated=True,

Callers

nothing calls this directly

Calls 2

is_validMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected