Admin Update Plan Metrices By ID
Developing
PUT
/admin/plans/{planId}/metrices/
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.vidinfra.com/v1/admin/plans/fa95721a-6214-4568-9415-e41e059e8059/metrices/' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_plan_id": "fa95721a-6214-4568-9415-e41e059e8059",
"type": "metered",
"name": "Plan Matric new",
"code": "PLN_MTRC_1",
"description": "This is a plan matric.",
"unit": "unit1",
"price_per_unit": 1000,
"aggregate_type": "count",
"aggregation_property": "property1"
}'
Response Response Example
{"message":"metrix updated successfully","result":{"id":"00000000-0000-0000-0000-000000000000","user_plan_id":"fa95721a-6214-4568-9415-e41e059e8059","type":"metered","name":"Plan Matric new","code":"PLN_MTRC_1","description":"This is a plan matric.","unit":"unit1","price_per_unit":1000,"aggregate_type":"count","aggregation_property":"property1","created_at":"0001-01-01T00:00:00Z","updated_at":"2024-03-30T09:50:20.100357656Z","deleted_at":null},"success":true}
Request
Path Params
planId
stringÂ
required
Example:
fa95721a-6214-4568-9415-e41e059e8059
Body Params application/json
Responses
Modified at 2025-06-19 04:59:01