You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 18, 2020. It is now read-only.
Hello,
it looks like both send_transactional_template and update_template functions issue a PUT to https://api.sendinblue.com/v2.0/template/ and are updating the template passed as argument.
If I issue a curl request like this one : url -H 'api-key:<my API key>' -X PUT -d '{"to":"a@b.com","from":"a@b.com","replyto":"a@b.com","subject":"My subject","attr":{"CIV":"Mister X","AMOUNT1":"416","AMOUNT2":25},"headers":{"Content-Type":"text\/html; charset=iso-8859-1","X-Mailin-Tag":"My TAG"}}' 'https://api.sendinblue.com/v2.0/template/6'
The webservice returns response {"code":"success","message":"Updated the Template.","data":[]}
I probably missing something but I am not able to use send_transactional_template as described in the official documentation.
Thank in advance for your precious help.
The text was updated successfully, but these errors were encountered:
Ok, I juste have a response from your support ( sorry about the duplicate ... ), the issue was happening because I was redefining some parameters already defined in my template.
For my particular case it was 'subject' and 'from'.
Here is the correct request :
url -H 'api-key:<my API key>' -X PUT -d '{"to":"a@b.com","replyto":"a@b.com","attr":{"CIV":"Mister X","AMOUNT1":"416","AMOUNT2":25},"headers":{"Content-Type":"text\/html; charset=iso-8859-1","X-Mailin-Tag":"My TAG"}}' 'https://api.sendinblue.com/v2.0/template/6
Hello,
it looks like both send_transactional_template and update_template functions issue a PUT to https://api.sendinblue.com/v2.0/template/ and are updating the template passed as argument.
If I issue a curl request like this one :
url -H 'api-key:<my API key>' -X PUT -d '{"to":"a@b.com","from":"a@b.com","replyto":"a@b.com","subject":"My subject","attr":{"CIV":"Mister X","AMOUNT1":"416","AMOUNT2":25},"headers":{"Content-Type":"text\/html; charset=iso-8859-1","X-Mailin-Tag":"My TAG"}}' 'https://api.sendinblue.com/v2.0/template/6'
The webservice returns response
{"code":"success","message":"Updated the Template.","data":[]}
I probably missing something but I am not able to use send_transactional_template as described in the official documentation.
Thank in advance for your precious help.
The text was updated successfully, but these errors were encountered: