Commet
  • Pricing
Log InTry out
Add plan to group POSTCreate plan group POSTDelete plan group DELETEGet plan group GETList plan groups GETRemove plan from group DELETEReorder plans in group PUTUpdate plan group PUT
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Add plan to group

Add an existing plan to a plan group with optional sort order.

Update invoice status PUT

Mark an outstanding invoice as "paid" or "void". Cannot change the status of already paid or voided invoices.

Create plan group POST

Create a new plan group for organizing plans.

POST
/plan-groups/{id}/plans

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

planId*string
Length1 <= length
sortOrder?integer
Range0 <= value

Response Body

application/json

application/json

curl -X POST "https://commet.co/api/v1/plan-groups/string/plans" \  -H "Content-Type: application/json" \  -d '{    "planId": "string"  }'

application/json

Public ID of the plan to add

Position within the group

Add an existing plan to a plan group with optional sort order.

Plan group public ID

{
  "success": true,
  "data": {
    "success": true
  }
}
{
  "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"
  }
}