Administration
Create billing plan
Create a new billing plan.
Note: Requires administrator permissions.
post/_api/plan
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Test",
"planId": "1",
"description": "New billing plan.",
"featureGates": [
"KV"
],
"attribution": "Macrometa",
"label": "Enterprise",
"pricing": "Custom pricing",
"isBundle": true,
"metadata": {
"key": "value"
},
"metrics": [
{
"name": "kv-reads",
"value": "c8db_service_kv_read_requests_count",
"metricType": "counter"
}
],
"active": true
}Response
Successfully created billing plan.
Example response
{
"active": true,
"demo": true,
"description": "Information of the plan",
"featureGates": [
"KV"
],
"label": "Free",
"metadata": {
"key": "value"
},
"metrics": [
{
"name": "kv-reads",
"value": "c8db_service_kv_read_requests_count",
"metricType": "counter"
}
],
"name": "enterprise",
"planID": "aa2da2sd3s2ed3ssd3sd",
"pricing": "Custom pricing"
}Changes
No recorded changes to this operation across all 1 revision of this API.