Management API
License
Update License Product Features
4min
updates product features on a license if requesting manager has access permissions to it url /api/v1/licenses/{id}/update features/ method post license product features provided in product features list will be created if not on license or updated if already on license license product features already on license but not provided in product features list will be deleted from license parameters for each license product feature product feature string max consumption integer total consumptions integer expiry date date format yyyy mm dd (2020 09 30) allow overages boolean max overages integer reset consumption boolean consumption period string choices daily , weekly , monthly , annualy metadata json is floating boolean is floating cloud boolean floating users integer floating timeout integer data example { "product features" \[ { "product feature" "f5" }, { "product feature" "f2", "max consumption" 88, "total consumptions" 0 } ] } success response code 200 ok content examples { "id" 1593781720493289, "status" "inactive", "floating in use devices" 0, "customer" { "id" 620, "total orders" 14, "total licenses" 45, "labels" \[ { "id" 3, "label id" 8, "label" "customer", "color" "#ff9f43" }, { "id" 53, "label id" 34, "label" "loyal", "color" "#3a0cd4" } ], "email" "tc\@tc com", "first name" "", "last name" "", "company name" "", "phone" "", "reference" "", "address" "", "postcode" "", "city" "", "country" "", "state" "", "clabels all" "customerloyal", "cognito user pool id" "", "metadata" {}, "company" 277, "license user" null, "clabels" \[ 8, 34 ] }, "product features" \[ { "id" 1605023917125630, "product feature" { "id" 189, "created at" "2020 11 13t07 40 53z", "updated at" "2020 11 13t07 40 53z", "name" "feature 5", "code" "f5", "is deleted" false, "feature type" "activation", "max consumption" 0, "allow overages" false, "max overages" 0, "reset consumption" false, "consumption period" null,, "metadata" {} }, "max consumption" 0, "total consumptions" 0, "expiry date" null, "allow overages" false, "max overages" 99, "reset consumption" false, "consumption period" null, "metadata" {} }, { "id" 1605023917125631, "product feature" { "id" 172, "created at" "2020 08 26t05 37 14z", "updated at" "2020 08 26t05 37 14z", "name" "feature 2", "code" "f2", "is deleted" false, "feature type" "consumption", "max consumption" 20, "allow overages" false, "max overages" 0, "reset consumption" false, "consumption period" null, "metadata" {} }, "max consumption" 88, "total consumptions" 0, "expiry date" null, "allow overages" false, "max overages" 99, "reset consumption" false, "consumption period" null, "metadata" {} } ], "product custom fields" \[], "license users" \[ { "id" 1240, "last login" null, "email" "example\@email com|uss1", "true email" "example\@email com", "created at" "2020 08 12t08 52 32z", "updated at" "2020 08 12t09 01 24z", "is admin" {}, "is active" true, "is staff" false, "first name" "john", "last name" "doe", "phone number" "00385913109161", "subscribed to email" false, "acquired consent" null, "is manager" false, "initial password" "4q3dg7! ", "is initial password" true } ], "order store id" "d2d2dce02c844d4492c9d48758aa143a", "active up to date devices" 0, "total active devices" 0, "product" { "id" 1584723961091234, "product name" "mch" }, "created at" "2020 07 03t13 08 40z", "updated at" "2020 11 13t07 41 01 671067z", "license key" null, "active" false, "enabled" true, "time activated" "2020 10 10t14 42 16z", "time disabled" "2020 08 14t07 26 27z", "max activations" 5, "times activated" 0, "valid duration" null, "validity period" "2020 09 30", "license type" "perpetual", "enable maintenance period" true, "maintenance duration" "3m", "maintenance period" "2021 01 10", "is trial" true, "max consumptions" 0, "total consumptions" 0, "subscription id" null, "last check" null, "prevent vm" true, "allow overages" false, "max overages" 0, "reset consumption" false, "consumption period" null, "trial days" 0, "is floating" false, "is floating cloud" true, "floating users" 1, "note" null, "max license users" 0, "transfer count" 0, "floating timeout" null, "max transfers" 0, "is air gapped" false, "can borrow" false, "max borrow time" 0, "is bundle" false, "metadata" {}, "order" 1593781720493279, "order item" 1593781720493299, "disabled user" null, "last activation device" null }