Update Template not working
Closed this issue · 0 comments
ShishoA commented
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
where im wrong exactly ?
Thank you for youe help.