POST
/
metrics
/
{metric}
/
points
curl --request POST \
  --url http://localhost/api/metrics/{metric}/points \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": 123,
  "timestamp": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "type": "metricPoints",
    "attributes": {
      "id": 123,
      "metric_id": 123,
      "calculated_value": "<string>",
      "value": 123,
      "counter": 123,
      "created": {
        "human": "<string>",
        "string": "<string>"
      },
      "updated": {
        "human": "<string>",
        "string": "<string>"
      }
    },
    "relationships": {
      "metric": {
        "data": {
          "type": "metrics",
          "id": "<string>"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

metric
integer
required

The metric ID

Body

application/json

CreateMetricPointRequestData

The body is of type object.

Response

201
application/json

MetricPoint

The response is of type object.