# Create New Dashboards via API

**URL:** <https://community.dynatrace.com/t/create-new-dashboards-via-api/46297>\
**Category:** Dynatrace API\
**Tags:** dashboards\
**Created:** [June 25, 2024, 11:49am UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297 "2024-06-25T11:49:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [June 25, 2024, 11:49am UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/1 "2024-06-25T11:49:42Z")

</div>

I’m missing an API to create/share new Dashboards (non-classic).  
Is this really missing or is it just not documented?

Dashboards are one of the most essential assets still. So I can’t believe there is no API for that?

---

<div class="post-metadata">

**Author:** ![Dant3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dant3/32/159_2.png) [@Dant3](https://community.dynatrace.com/u/Dant3)\
**Post date:** [June 25, 2024, 1:31pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/2 "2024-06-25T13:31:50Z")

</div>

If I recall correctly the Dashboards are using the Document Service, so the share document are [actually there](https://developer.dynatrace.com/reference/sdks/client-document/).

I think an improvement in Dashboard API or Documentation actually worth it, since I cross with it when working with the Doc Service for another reason.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 25, 2024, 1:46pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/3 "2024-06-25T13:46:20Z")

</div>

It’s carefully hidden. But it’s there as a document service.

[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;btw. it’s also possible to use Monaco with it, just it’s still hidden under [a feature flag](https://community.dynatrace.com/post/246783). Also if you run into strange HTTP codes such as 409, your documents are deleted but not permanently deleted. You need to delete them permanently or restore them

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [June 26, 2024, 11:34am UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/4 "2024-06-26T11:34:49Z")

</div>

Jesus! WHY???

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [June 26, 2024, 5:08pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/5 "2024-06-26T17:08:34Z")

</div>

Acknowledge that we can improve the visibility!

**Where would you expect it to show up?**  
(it might seem like a naive question at this point, but I intentionally try not to bias here and ask an open-ended question).

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 26, 2024, 5:28pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/6 "2024-06-26T17:28:57Z")

</div>

[@zietho](https://community.dynatrace.com/user/23400)&nbsp;first of all please add it to the [docs.dynatrace.com](http://docs.dynatrace.com) in the API section. There is no single mention of the API URL in docs or [developer.dynatrace.com](http://developer.dynatrace.com).

Also please improve the API doc and include all response codes at least. I was desperately looking at response status codes and the API response did not have any text description either.

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [June 26, 2024, 6:23pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/7 "2024-06-26T18:23:51Z")

</div>

I think [developer.dynatrace.com](https://developer.dynatrace.com/reference/sdks/client-document/)&nbsp;is ok if someone wants to build apps with NodeJS/Typescript. But honestly that’s not what I’d go to look for in the first place.  
If I’m used to play/test with Postman or any custom code (python, …) then I’d expect a swagger or proper API documentation ([here](https://docs.dynatrace.com/docs/dynatrace-api)) and please re-introduce the easily accessible swagger link directly from the new Dynatrace UI! 😉  
And a plus: maybe even provide a postman collection and keep it up-to-date 😉

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [June 26, 2024, 7:10pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/8 "2024-06-26T19:10:38Z")

</div>

Thank you for the swift and thorough reply!

- you can find the swagger under:&nbsp;[https://[dturl]/platform/swagger-ui/index.html?urls.primaryName=Document Service](https://dturl/platform/swagger-ui/index.html?urls.primaryName=Document%20Service)
- I already triggered the doc update internally.
- Regarding the direct link, I will also forward that feedback

regards

Thomas

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [June 27, 2024, 7:45am UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/9 "2024-06-27T07:45:51Z")

</div>

Thanks Thomas!  
That link is golden!

---

<div class="post-metadata">

**Author:** ![paolo\_fumanelli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/paolo_fumanelli/32/1037_2.png) [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Post date:** [January 29, 2025, 1:24pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/10 "2025-01-29T13:24:20Z")

</div>

Hi&nbsp;[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;did you manage then to upload a dashboard via api? I’m stuck at binarizing the dashboard json in javascript, can you help? Thanks

---

<div class="post-metadata">

**Author:** ![andreas\_kothmei](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@andreas\_kothmei](https://community.dynatrace.com/u/andreas_kothmei)\
**Post date:** [January 30, 2025, 2:23pm UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/11 "2025-01-30T14:23:23Z")

</div>

Hi [@paolo\_fumanelli](https://community.dynatrace.com/user/19328), you can do something like this to create a Blob from your dashboard json (at least in TypeScript):

```javascript
export function jsonToBlob(json: unknown): Blob {
    return new Blob([JSON.stringify(json)], { type: 'application/json' });
}

```

---

<div class="post-metadata">

**Author:** ![paolo\_fumanelli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/paolo_fumanelli/32/1037_2.png) [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Post date:** [January 31, 2025, 8:47am UTC](https://community.dynatrace.com/t/create-new-dashboards-via-api/46297/12 "2025-01-31T08:47:51Z")

</div>

Thank you! It worked perfectly
