Neilord
Neilord

Reputation: 66

SendGrid copy template from Subuser to Parent Account

I need to copy some my Dynamic Templates from Subuser to my ParentAccount.

Can I do it? Or I can't?

Upvotes: 1

Views: 1434

Answers (2)

Alex
Alex

Reputation: 1137

In case anyone comes accross this Q, you can do this in Sendgrid's Dynamic Template UI.

In the Dynamic Template source, go Build -> Advanced -> Export.

In the Dynamic Template destination, go Build -> Advanced -> Import Drag & Drop HTML.

I can't find this mentioned in any docs online, but screenshot here:

Screenshot of Advanced Options in Sendgrid's App

Upvotes: 1

Guillaume Force
Guillaume Force

Reputation: 21

Yes you can. You need to create an API Key on your SubUser that can read your Dynamic Templates. Once done, get it by ID with your subuser API Key, then call another API to create a Dynamic Templates with you Parent account API Key.

https://docs.sendgrid.com/api-reference/transactional-templates/retrieve-a-single-transactional-template

https://docs.sendgrid.com/api-reference/transactional-templates/create-a-transactional-template

Upvotes: 2

Related Questions