def perform_create(self, serializer):
        app = self.get_object()
        app.reset_secret(save=True)
        app.reload()
        serializer.validated_data['client_secret'] = app.client_secret
Resets the application client secret, revokes all tokens
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/applications/views.py/ApplicationReset.perform_create