Compass Push Metric using cURL - missing field, but no clue which one

Hi there!

I’m testing pushing metrics into Compass following the steps on this page: https://developer.atlassian.com/cloud/compass/components/push-metric-values-using-a-curl-command/

And I’m getting the following error:

{
    "errors": [
        {
            "type": "FIELD_MISSING",
            "message": "Field [] must not be null"
        }
    ]
}

It doesn’t tell me which field is missing, and all Headers and JSON fields are present as per the cURL copied from the Compass UI.
Below is the payload of the request. These were the only fields provided by the copy in Compass.

{
    "data": {
        "metricSourceId": "ari:cloud:compass:xxxxxx/xxxxxx",
        "value": 129,
        "timestamp": "2024-02-13T11:45:00Z"
    }
}

Thanks!
Neill

nvm… :blush:
Didn’t need the “data” element in the request :person_facepalming:

2 Likes