Create Product

Creates a product if requesting manager has access permissions to it.

  • Method: POST

  • URL: /api/v1/products/

  • Try it out: false

Example request

Request body (application/json)
{
    "active": true,
    "product_name": "tmc4",
    "short_code": "tmc4",
    "default_license_type": "perpetual",
    "subscription_duration": "",
    "valid_duration": "",
    "enable_maintenance_period": false,
    "maintenance_duration": "",
    "max_consumptions": 1,
    "allow_overages": false,
    "max_overages": 0,
    "reset_consumption": false,
    "consumption_period": null,
    "is_floating": false,
    "is_floating_cloud": false,
    "floating_users": 0,
    "floating_timeout": 120,
    "max_activations": 1,
    "allow_trial": false,
    "trial_days": 0,
    "authorization_method": "license-key",
    "prevent_vm": false,
    "hardware_id_required": false,
    "is_upgrade": false,
    "upgrade_from": [],
    "is_node_locked": true,
    "is_user_locked": false
}

Example responses

Request body parameters

Name
Required
Type
Description

product_name

required

string

short_code

required

string

only accepts alphanumeric characters, digits and dashes.

active

optional

boolean

boolean

default_license_type

optional

string

values can be perpetual, subscription, time-limited, and consumption.

subscription_duration

optional

string

valid_duration

optional

string

enable_maintenance_period

optional

boolean

boolean

maintenance_duration

optional

string

max_consumptions

optional

integer

integer

allow_overages

optional

boolean

boolean

max_overages

optional

integer

integer

reset_consumption

optional

boolean

boolean

consumption_period

optional

string

is_floating

optional

boolean

boolean

is_floating_cloud

optional

boolean

boolean

floating_users

optional

integer

integer

floating_timeout

optional

integer

integer

max_activations

optional

integer

integer

allow_trial

optional

boolean

boolean

trial_days

optional

integer

integer

authorization_method

optional

string

values can be license-key, user.

prevent_vm

optional

boolean

boolean

hardware_id_required

optional

boolean

boolean

is_upgrade

optional

boolean

boolean

upgrade_from

optional

string

list of product IDs

is_node_locked

optional

boolean

boolean

is_user_locked

optional

boolean

boolean

Notes

  • The endpoint creates a product only if the requesting manager has access permissions to it.

  • Created at / Updated at timestamps are present in recorded responses.

Last updated

Was this helpful?