To create a product, use the following request:

POST /products

Request JSON Objects

Valid JSON parameters include the following.

ParameterTypeRequiredDefinition

name 

stringYesProduct name
versionstringYesVersion
description stringNoDescription
license_generator_typestringYesLicense generator type. Choices are lm_x, flexnet, reprise
license_generator_idintegerNoLicense generator ID
feature_namestringYesFeature name


Example request

POST /products HTTP/1.1
Content-Type: application/json
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6

{
	"name": "License Statistics",
	"version": "6.0",
	"description": "",
	"license_generator_type": "lm_x",
	"license_generator_id": null,
	"feature_name": "Professional"
}

Response

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
200 OKProduct created.

400 Bad Request

Invalid data.
403 ForbiddenInvalid or expired token provided.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json

{
	"id": "1",
	"name": "License Statistics",
	"version": "6.0",
	"description": "",
	"LicenseGenerator": null,
	"ProductTemplates": [
		{
			"id": "1",
			"name": "Default",
			"product_id": "1"
		}
	]
}
  • No labels