Create Product Feature

Creates a product feature if the requesting manager has access permissions.

  • Method: POST

  • URL: /api/v1/product-features/

Request example (JSON)

Request body (application/json)
{
    "name": "f3",
    "code": "f3",
    "feature_type": "consumption",
    "max_consumption": 10,
    "allow_overages": false,
    "max_overages": 0,
    "reset_consumption": false,
    "consumption_period": null,
    "metadata": {},
    "product": 1698659666691556,
    "is_floating": true,
    "floating_users": 10,
    "floating_timeout": 120
}

Request body parameters

Name
Required
Type
Description

name

required

string

code

required

string

feature_type

required

string

Choices: activation, consumption.

max_consumption

optional

integer

allow_overages

optional

boolean

max_overages

optional

integer

reset_consumption

optional

boolean

consumption_period

optional

string

Choices: daily, weekly, monthly, annually.

product

optional

integer

is_floating

optional

boolean

floating_users

optional

integer

floating_timeout

optional

integer

metadata

optional

object

JSON object

Example responses

200 OK

Last updated

Was this helpful?