twisted1919/mailwizz-python-sdk

Update Template not working

Closed this issue · 0 comments

Hi there
im trying to update a template with the function of the sdk (endpoint.update).
Im getting a message of {status:sucess} but for some reason the content is not updating

im using the example code :

    endpoint = Templates()
    response = endpoint.update(template_uid='my_template_id', data={
    # response = endpoint.create(data={
    'name': 'My Template',
     'content': open('template-example.html', 'rb').read(),
    # 'archive': open('template-example.zip', 'rb').read(),
    'inline_css': 'no',  # yes|no
    })
    return `response.content`

and here the source code content in mailwizz dashboard

image

where im wrong exactly ?

Thank you for youe help.