Takes a list of users and removes them from the organisation provided in the url
(self, request, pk)
| 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, |