Skip to main content
POST
/
merchant
/
plan
/
metric_limit_override
Override Metric Limits Of Plan
curl --request POST \
  --url https://api.unibee.dev/merchant/plan/metric_limit_override \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "planId": 123,
  "metadataOverride": {},
  "metricLimit": [
    {
      "metricLimit": 123,
      "metricCode": "<string>",
      "metricId": 123
    }
  ]
}
'
{
  "code": 123,
  "data": {
    "metadataOverrideSuccess": true,
    "metricLimitOverrideSuccess": true
  },
  "merchantId": 123,
  "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

Insert or override metric limit items of a plan

planId
integer<int64>
required

Id of plan

metadataOverride
object

Metadata to override for plan, only provided keys will be added/updated

metricLimit
object[]

MetricLimit items to insert or override, identify metric by id or code

Response

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