cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

POST call not working

ssharm02
Newcomer

Hi everyone,
I am using this REST API: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-sma[…]e/custom-dev...
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:

 

 

 

 

 

 

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 ]
       ]
    }
  ]
}

 

 

 

 

 

1 REPLY 1

abbachr
Dynatrace Helper
Dynatrace Helper

 

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.

Featured Posts