auth0 / auth0-python

Auth0 SDK for Python
https://auth0-python.readthedocs.io
MIT License
515 stars 167 forks source link

Management.Branding.update_template_universal_login - Syntax Error! #494

Closed metarama closed 1 year ago

metarama commented 1 year ago

Checklist

Description

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'.

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

adamjmcgrath commented 1 year ago

Thanks for raising this @metarama - have raised https://github.com/auth0/auth0-python/pull/495 to fix