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 default price

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

Remove feature from plan DELETE

Detach a feature from a plan.

Set plan visibility PUT

Toggle a plan between public and private.

PUT
/plans/{id}/prices/{priceId}/default

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string
priceId*string

Response Body

application/json

application/json

curl -X PUT "https://commet.co/api/v1/plans/string/prices/string/default"

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

Plan public ID

Price public ID

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