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

Reorder plans in group

Set the display order of plans within a group. All plan IDs in the group must be provided.

Remove plan from group DELETE

Remove a plan from a plan group.

Update plan group PUT

Update a plan group's name, description, or visibility.

PUT
/plan-groups/{id}/plans/reorder

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.

planIds*array<>
Items1 <= items

Response Body

application/json

application/json

curl -X PUT "https://commet.co/api/v1/plan-groups/string/plans/reorder" \  -H "Content-Type: application/json" \  -d '{    "planIds": [      "string"    ]  }'

Ordered list of plan IDs

Set the display order of plans within a group. All plan IDs in the group must be provided.

Plan group public ID

{
  "success": true,
  "data": {
    "reordered": true
  }
}
{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}