# Defining UI of Custom Device through API

**URL:** <https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928>\
**Category:** Dynatrace API\
**Tags:** gui, dynatrace-api\
**Created:** [November 30, 2020, 11:25am UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928 "2020-11-30T11:25:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [November 30, 2020, 11:25am UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/1 "2020-11-30T11:25:17Z")

</div>

I’m used to defining the UI of Custom Devices that are created from ActiveGate extensions. It is defined nicely here:

> **[Develop your own Extensions](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions)**
>
> Develop your own Extensions in Dynatrace.

I have had to create Custom Devices through an API, but cannot find how to define the UI neatly. Does anyone know of a reference how to do it?

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [November 30, 2020, 12:20pm UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/2 "2020-11-30T12:20:16Z")

</div>

Hi Antonio,

Here is the API

> **[Create custom device via the Dynatrace API](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/topology-and-smartscape/custom-device-api/create-custom-device-via-dynatrace-api)**
>
> Learn how you can use the Dynatrace API to create a custom device.

In the future we will offer a configuration that will allow you to automatically derive entities from metric and log ingest streams.

Best greetings,

Wolfgang

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [November 30, 2020, 1:57pm UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/3 "2020-11-30T13:57:49Z")

</div>

Hi [@Wolfgang B.](https://answers.dynatrace.com/users/12838/view.html)

I have no problem creating custom devices and attaching several variables.

What I miss is a way to define the UI as can be done in an ActiveGate extension, as the example below, taken from the link I referenced:

“ui”: {  
“charts”: [  
{  
“group”: “Trigonometric functions”,  
“title”: “sinus”,  
“series”: [  
{  
“key”: “baseSin”,  
“aggregation”: “avg”,  
“mergeaggregation”: “avg”,  
“displayname”: “basic sinus metric”,  
“seriestype”: “line”,  
“color”: “#00ff00”,  
“rightaxis”: false,  
“stacked”: false  
},  
{  
“key”: “baseCos”,  
“aggregation”: “avg”,  
“mergeaggregation”: “avg”,  
“displayname”: “basic cosinus metric”,  
“seriestype”: “line”,  
“color”: “#0000ff”,  
“rightaxis”: true,  
“stacked”: false  
}  
]  
},  
{

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [November 30, 2020, 2:30pm UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/4 "2020-11-30T14:30:28Z")

</div>

There is just the generic entity screen for those types of entities. The team is currently working on an improved UI for custom entity types.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [November 30, 2020, 5:31pm UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/5 "2020-11-30T17:31:01Z")

</div>

Hi [@Wolfgang B.](https://answers.dynatrace.com/users/12838/view.html)

Ooops..

So, given that it is not possible, would you say it is possible to define a UI screen through an ActiveGate Extension, and than update it through the API?

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [December 23, 2021, 2:11pm UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/6 "2021-12-23T14:11:41Z")

</div>

Hello&nbsp;[@wolfgang\_beer](https://community.dynatrace.com/user/8624)! Are there some updates on this area regarding Antonio’s question?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [January 4, 2022, 10:18am UTC](https://community.dynatrace.com/t/defining-ui-of-custom-device-through-api/20928/7 "2022-01-04T10:18:20Z")

</div>

The correct way to do it is to define a unified analysis screen. This can easiest be done in an Extension 2.0 YAML under the “screen” section. That way you have much more control over the UI than what was possible with the custom device screen.
