# Export template as json file

**URL:** <https://community.amazonquick.com/t/export-template-as-json-file/36218>\
**Category:** Q&A\
**Tags:** api, developer, quick-sight\
**Created:** [September 28, 2024, 11:11am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218 "2024-09-28T11:11:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VaishnaviM](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@VaishnaviM](https://community.amazonquick.com/u/VaishnaviM)\
**Post date:** [September 28, 2024, 11:11am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/1 "2024-09-28T11:11:23Z")

</div>

Hi,  
Is there any way to export whole template as json file. I have tried describe-template api but it gives only metadata of template, doesn’t include whole schema or graphs structure.  
please share if this is possible in quicksight or not.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [September 28, 2024, 1:24pm UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/2 "2024-09-28T13:24:39Z")

</div>

Hi @VaishnaviM - Thanks. what you are trying to export? A dashboard, analysis… give more details around it.

Regards,  
Sanjeeb

---

<div class="post-metadata">

**Author:** ![VaishnaviM](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@VaishnaviM](https://community.amazonquick.com/u/VaishnaviM)\
**Post date:** [September 30, 2024, 4:45am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/3 "2024-09-30T04:45:17Z")

</div>

Hi @Sanjeeb2022 , Thank you for the response.  
I am trying to update analysis(reflect changes made in source account analysis into prod account analysis) using json file of template. SO i want to know can we download whole json of template used to update analysis.

Thank you.

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [September 30, 2024, 8:28am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/4 "2024-09-30T08:28:34Z")

</div>

@VaishnaviM ,

You can use the template definition to download the metadata information : [describe-template-definition — AWS CLI 1.34.29 Command Reference](https://docs.aws.amazon.com/cli/latest/reference/quicksight/describe-template-definition.html)

Kind regards,  
Koushik

---

<div class="post-metadata">

**Author:** ![VaishnaviM](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@VaishnaviM](https://community.amazonquick.com/u/VaishnaviM)\
**Post date:** [October 3, 2024, 5:31am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/5 "2024-10-03T05:31:30Z")

</div>

Hi @Koushik_Muthanna ,  
As I mentioned in question, I have tried describe-template api but it gives only metadata of template, doesn’t include whole schema or graphs structure.So, If I used this json to update analysis in target account, I dont’t think it would reflect changes in analysis. is there any way to download whole template in json fromat as we can download analysis or dashboard?

thank you

---

<div class="post-metadata">

**Author:** ![prantika\_sinha](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/prantika_sinha/32/21878_2.png) [@prantika\_sinha](https://community.amazonquick.com/u/prantika_sinha)\
**Post date:** [October 3, 2024, 5:43am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/6 "2024-10-03T05:43:23Z")

</div>

Hi @VaishnaviM ,

As shared by @Koushik_Muthanna , you can use describe template definition. Since you were using [describe template](https://docs.aws.amazon.com/cli/latest/reference/quicksight/describe-template.html), you were getting only the metadata. However, definition will give you the detail you need. The link shared shared by Koushik gives a detail of the expected output.

Thanks,  
Prantika

---

<div class="post-metadata">

**Author:** ![VaishnaviM](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@VaishnaviM](https://community.amazonquick.com/u/VaishnaviM)\
**Post date:** [October 10, 2024, 10:33am UTC](https://community.amazonquick.com/t/export-template-as-json-file/36218/7 "2024-10-10T10:33:42Z")

</div>

Thank you!! @Koushik_Muthanna , @prantika_sinha  
I am able to export whole json using describe-template-definition, and resolved my issue.
