POST call not working

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

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.