Commet
  • Precios
Iniciar SesiónRegistrarse
Add feature to plan POSTAdd price to plan POSTCreate plan POSTDelete plan price DELETEDelete plan DELETEDelete regional prices DELETEGet plan GETList plans GETRemove feature from plan DELETESet default price PUTSet plan visibility PUTUpdate plan feature PUTUpdate plan price PUTUpdate plan PUTUpsert regional prices PUT
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Set plan visibility

Toggle a plan between public and private.

Set default price PUT

Set a specific price as the default for its plan. Unsets previous default.

Update plan feature PUT

Update limits, overage, or enabled status of a feature on a plan.

PUT
/plans/{id}/visibility

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.

isPublic*boolean

Response Body

application/json

application/json

curl -X PUT "https://commet.co/api/v1/plans/string/visibility" \  -H "Content-Type: application/json" \  -d '{    "isPublic": true  }'

Toggle a plan between public and private.

Plan public ID

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