curl --request POST \
--url https://api.unibee.dev/merchant/metric/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metricId": 123,
"metricName": "<string>",
"metaData": {},
"metricDescription": "<string>",
"type": 123,
"unit": "<string>"
}
'{
"code": 123,
"data": {
"merchantMetric": {
"aggregationProperty": "<string>",
"aggregationType": 123,
"archived": true,
"code": "<string>",
"createTime": 123,
"gmtModify": 123,
"id": 123,
"merchantId": 123,
"metaData": {},
"metricDescription": "<string>",
"metricName": "<string>",
"type": 123,
"unit": "<string>"
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}curl --request POST \
--url https://api.unibee.dev/merchant/metric/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metricId": 123,
"metricName": "<string>",
"metaData": {},
"metricDescription": "<string>",
"type": 123,
"unit": "<string>"
}
'{
"code": 123,
"data": {
"merchantMetric": {
"aggregationProperty": "<string>",
"aggregationType": 123,
"archived": true,
"code": "<string>",
"createTime": 123,
"gmtModify": 123,
"id": 123,
"merchantId": 123,
"metaData": {},
"metricDescription": "<string>",
"metricName": "<string>",
"type": 123,
"unit": "<string>"
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Show child attributes
aggregation property
1-count,2-count unique, 3-latest, 4-max, 5-sum
archived
code
create utc time
update time
id
merchantId
metric description
metric name
1-limit_metered,2-charge_metered,3-charge_recurring
unit