Commet
  • Pricing
Log InTry out
Create feature POSTDelete feature DELETEGet feature access GETGet feature GETList feature access GETList features GETUpdate feature PUT
System status
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Create feature

Create a new feature. Code must be lowercase alphanumeric with underscores.

POST
/features/manage

Create a new feature. Code must be lowercase alphanumeric with underscores.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/features/manage" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "code": "string",    "type": "boolean"  }'
{  "success": true,  "data": {    "id": "string",    "name": "string",    "code": "string",    "type": "boolean",    "description": "string",    "unitName": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "object": "feature",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

Update customer PUT

Update a customer's name, external ID, or metadata.

Delete feature DELETE

Delete a feature. Fails if the feature is attached to active plans or has an active add-on.

name*string
Length1 <= length
code*string
Match^[a-z0-9_]+$
Length1 <= length
type*string

Value in

  • "boolean"
  • "usage"
  • "seats"
  • "quota"
description?string
unitName?string