Skip to main content
POST
/
merchant
/
metric
/
edit
Edit Merchant Metric
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>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
metricId
integer<int64>
required

MetricId

metricName
string<string>
required

MetricName

metaData
object

meta_data(json)

metricDescription
string<string>

MetricDescription

type
integer<*int>

1-limit_metered,2-charge_metered,3-charge_recurring

unit
string<string>

unit

Response

200 - application/json
code
integer<int>
data
object
message
string<string>
redirect
string<string>
requestId
string<string>