Closed metarama closed 1 year ago
The Management.Branding.update_template_universal_login method is defined as follows:
def update_template_universal_login(self, body): return self.client.put( self._url("templates", "universal-login"), body={"template": body}, )
The keyword argument 'body=' should be 'data=' to match the RestClient.put method. I get a Python runtime error.
TypeError: put() got an unexpected keyword argument 'body'.
Simply invoke Branding.update_template_universal_login() with some simple html text.
No response
3.9
Thanks for raising this @metarama - have raised https://github.com/auth0/auth0-python/pull/495 to fix
Checklist
Description
The Management.Branding.update_template_universal_login method is defined as follows:
The keyword argument 'body=' should be 'data=' to match the RestClient.put method. I get a Python runtime error.
TypeError: put() got an unexpected keyword argument 'body'.
Reproduction
Simply invoke Branding.update_template_universal_login() with some simple html text.
Additional context
No response
auth0-python version
3.9
Python version
3.9