MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / update_subscription

Method update_subscription

api/organisations/views.py:199–206  ·  view source on GitHub ↗
(self, request, pk)

Source from the content-addressed store, hash-verified

197 @extend_schema(responses={200: OrganisationSerializerFull})
198 @action(detail=True, methods=["POST"], url_path="update-subscription")
199 def update_subscription(self, request, pk): # type: ignore[no-untyped-def]
200 serializer = self.get_serializer(data=request.data)
201 serializer.is_valid(raise_exception=True)
202 serializer.save()
203 return Response(
204 OrganisationSerializerFull(instance=self.get_object()).data,
205 status=status.HTTP_200_OK,
206 )
207
208 @action(
209 detail=True,

Callers

nothing calls this directly

Calls 4

is_validMethod · 0.80
saveMethod · 0.45
get_objectMethod · 0.45

Tested by

no test coverage detected