# POST call not working

**URL:** <https://community.dynatrace.com/t/post-call-not-working/35434>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [June 9, 2022, 3:45pm UTC](https://community.dynatrace.com/t/post-call-not-working/35434 "2022-06-09T15:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssharm02](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@ssharm02](https://community.dynatrace.com/u/ssharm02)\
**Post date:** [June 9, 2022, 3:45pm UTC](https://community.dynatrace.com/t/post-call-not-working/35434/1 "2022-06-09T15:45:57Z")

</div>

Hi everyone,  
I am using this REST API:&nbsp;[https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-sma[…]e/custom-device-api/report-custom-device-metric-via-rest-api](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-smartscape/custom-device-api/report-custom-device-metric-via-rest-api#definition--EntityTimeseriesData)  
to report a metric for an existing custom device. Instead of reporting the custom metric for an existing device, this api call creates a new custom device and attaches the metric to it.  
This is a sample call that I am making:

```javascript
curl -X POST \
  https://cto43873.live.dynatrace.com/api/v1/entity/infrastructure/custom/idOfmyCustomDevice \
  -H 'Authorization: Api-Token dt0c01.APITOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "Azure Virtual Network Gateway",
  "series" : [
    {
      "timeseriesId" : "custom:my.custom.metric",
      "dataPoints" : [
        [1654695594547, 20]
       ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![abbachr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abbachr/32/28551_2.png) [@abbachr](https://community.dynatrace.com/u/abbachr)\
**Post date:** [December 14, 2022, 2:16pm UTC](https://community.dynatrace.com/t/post-call-not-working/35434/2 "2022-12-14T14:16:57Z")

</div>

With the given information it is not possible to pinpoint what is going wrong. I suggest you open a support ticket so this can be investigated in your environment.
