- Documentation
- API Reference
- Projects
- importer.vidinfra.com
- Auth
- User Registration
- User Login
- Verify-email
- Forgot Password
- Forgot Password Verify OTP
- Forgot Password Set
- Resend OTP
- Logout
- Set Password
- Check Account exists
- Update Password
- Google Oauth Redirect
- Google Oauth Callback
- api-access-check
- New Auth token using Refresh token
- Github Oauth Redirect
- Google Oauth Callback Copy
- Get User Sessions
- Delete User Sessions
- User
- Organization
- Organization's invitations
- Audits
- Members
- API Keys
- Folders
- Videos
- Video Metas
- Video Captions
- Video Chapter
- Uploads
- Tags
- Players
- Webhook Endpoints
- Advertisements
- Webhook Event Logs
- Analytics Direct Api
- geo-distribution
- Project Views
- avg video watch
- Total watch Time
- Project Avg Watch per Unique user
- Total Player Error
- project popularity-analysis
- Project Collection Insights
- Collection Views
- Collection avg Watch time
- Collection Avg Watch per unique user
- Collection Geo Distribution
- Get all Users
- User media views
- User Avg video watch
- user Player log
- user sessions
- Get all Video
- video Player error
- Video View
- video Geo Distribution
- video Avg watch
- copy
- Streams
- Stream Metas
- Usages
- Encoding profile
- Project Matrics
- Access Control
- Analytics
- Project Get geo-distribution
- project views
- Project avg video watch
- Project Total Watch
- Project Avg Watch per Unique user
- Project All Player Errors
- Project Popularity Analysis
- Project Collections insights
- Collection Geo Distribution
- Collection avg watch time
- Collection avg watch per unique User
- Collection Player error
- Video Geo Distribution
- Video views
- Video Avg Watch
- Video Player Log
- User
- User Avg Video Watch
- User Total Watch
- User player error log
- Plan
- public plansGET
- current planGET
- Account PlansGET
- Get plan by IDGET
- Admin Get PlansGET
- Admin Create planPOST
- Admin Get Plan by IDGET
- Admin Update Plan by IDPUT
- Admin Delete plan By IDDELETE
- Admin Get Plan MetricesGET
- Admin Get Plan Metrices By TypeGET
- Admin Create Plan Matrices By TypePOST
- Admin Update Plan Metrices By IDPUT
- Upload Tokens
- subscribe
- Transaction
- Invoice
- vimeo video importer
- test
- transcoding service
- transcoding service v2
- Welcome to vidinfraGET
- health checkGET
- Regions ListGET
- keyPOST
- Untitled EndpointGET
Admin Update Plan Metrices By ID
Developing
PUT
/admin/plans/{planId}/metrices/
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
planId
stringÂ
required
Example:
fa95721a-6214-4568-9415-e41e059e8059
Body Params application/json
object {0}
Example
{
"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"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:8080/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"
}'
Responses
🟢200OK
application/json
Body
object {0}
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}