Create plan
Create a new plan with optional consumption model, visibility, and plan group assignment.
Create a new plan with optional consumption model, visibility, and plan group assignment.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= length^[a-z0-9_]+$1 <= length"metered" | "credits" | "balance"application/json
curl -X POST "https://commet.co/api/v1/plans/manage" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "code": "string" }'application/json
application/json
application/json
Plan name
Unique code (lowercase, underscores only)
Consumption model for the plan
Public ID of the plan group to assign
Create a new plan with optional consumption model, visibility, and plan group assignment.
{
"success": true,
"data": {
"object": "plan",
"livemode": true,
"id": "string",
"name": "string",
"code": "string",
"description": "string",
"consumptionModel": "string",
"isPublic"
{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}