POST
/
v1
/
cards
/
{cardId}
/
metrics
curl --request POST \
  --url https://api.vistaly.com/v1/cards/{cardId}/metrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "timestamp": "2023-11-07T05:31:56Z",
  "value": 123
}'
{
  "message": "Metric datapoint created"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

cardId
string
required

The unique identifier for the card whose metrics are being submitted.

Body

application/json

Response

200
application/json
Metrics submitted successfully

The response is of type object.